Skip to content

Commit

Permalink
fixup json tags
Browse files Browse the repository at this point in the history
  • Loading branch information
skyscrapr committed May 10, 2024
1 parent 64a2d4e commit 8c5182b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openai/assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ type AssistantToolResources struct {
} `json:"code_interpreter,omitempty"`
FileSearch *struct {
VectorStoreIDs []string `json:"vector_store_ids"`
VectorStore *struct {
VectorStores *struct {
FileIDs []string `json:"file_ids"`
MetaData map[string]string `json:"metadata,omitempty"`
} `json:"vector_store,omitempty"`
} `json:"vector_stores,omitempty"`
} `json:"file_search,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion openai/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ func (e *endpoint) newRequest(method string, u *url.URL, body interface{}) (*htt

func (e *betaEndpoint) newRequest(method string, u *url.URL, body interface{}) (*http.Request, error) {
req, err := e.Client.newRequest(method, u, body)
req.Header.Set("OpenAI-Beta", "assistants=v1")
req.Header.Set("OpenAI-Beta", "assistants=v2")
return req, err
}

0 comments on commit 8c5182b

Please sign in to comment.