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:
10
run.go
10
run.go
@@ -70,11 +70,11 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type RunRequest struct {
|
type RunRequest struct {
|
||||||
AssistantID string `json:"assistant_id"`
|
AssistantID string `json:"assistant_id"`
|
||||||
Model *string `json:"model,omitempty"`
|
Model *string `json:"model,omitempty"`
|
||||||
Instructions *string `json:"instructions,omitempty"`
|
Instructions *string `json:"instructions,omitempty"`
|
||||||
Tools []Tool `json:"tools,omitempty"`
|
Tools []Tool `json:"tools,omitempty"`
|
||||||
Metadata map[string]any
|
Metadata map[string]any `json:"metadata,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RunModifyRequest struct {
|
type RunModifyRequest struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user