Add json:"metadata,omitempty" to RunRequest struct (#561)
Metadata is an optional field per the api spec https://platform.openai.com/docs/api-reference/runs/createRun
This commit is contained in:
2
run.go
2
run.go
@@ -74,7 +74,7 @@ type RunRequest struct {
|
||||
Model *string `json:"model,omitempty"`
|
||||
Instructions *string `json:"instructions,omitempty"`
|
||||
Tools []Tool `json:"tools,omitempty"`
|
||||
Metadata map[string]any
|
||||
Metadata map[string]any `json:"metadata,omitempty"`
|
||||
}
|
||||
|
||||
type RunModifyRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user