Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/messages api #546

Merged
merged 17 commits into from
Nov 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update messages.go
Co-authored-by: Simone Vellei <henomis@gmail.com>
  • Loading branch information
urjitbhatia and henomis authored Nov 12, 2023
commit f552c453616f12dbe71ee631670aee22414d9659
4 changes: 2 additions & 2 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Message struct {
Role string `json:"role"`
Content []MessageContent `json:"content"`
FileIds []interface{} `json:"file_ids"`
urjitbhatia marked this conversation as resolved.
Show resolved Hide resolved
AssistantID string `json:"assistant_id"`
RunID string `json:"run_id"`
AssistantID *string `json:"assistant_id,omit_empty"`
RunID *string `json:"run_id,omit_empty"`
Metadata map[string]any `json:"metadata"`

httpHeader
Expand Down