Fix Refactor assistant api (#545)
* fix: refactor assistant API * fix * trigger build * fix: use AssistantDeleteResponse
This commit is contained in:
@@ -83,6 +83,12 @@ func withContentType(contentType string) requestOption {
|
||||
}
|
||||
}
|
||||
|
||||
func withBetaAssistantV1() requestOption {
|
||||
return func(args *requestOptions) {
|
||||
args.header.Set("OpenAI-Beta", "assistants=v1")
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Client) newRequest(ctx context.Context, method, url string, setters ...requestOption) (*http.Request, error) {
|
||||
// Default Options
|
||||
args := &requestOptions{
|
||||
|
||||
Reference in New Issue
Block a user