Skip to content

Commit 35495cc

Browse files
authored
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
1 parent d6f3bdc commit 35495cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

run.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ const (
7070
)
7171

7272
type RunRequest struct {
73-
AssistantID string `json:"assistant_id"`
74-
Model *string `json:"model,omitempty"`
75-
Instructions *string `json:"instructions,omitempty"`
76-
Tools []Tool `json:"tools,omitempty"`
77-
Metadata map[string]any
73+
AssistantID string `json:"assistant_id"`
74+
Model *string `json:"model,omitempty"`
75+
Instructions *string `json:"instructions,omitempty"`
76+
Tools []Tool `json:"tools,omitempty"`
77+
Metadata map[string]any `json:"metadata,omitempty"`
7878
}
7979

8080
type RunModifyRequest struct {

0 commit comments

Comments
 (0)