Remove hardcoded assistants version (#719)
This commit is contained in:
@@ -89,9 +89,9 @@ func withContentType(contentType string) requestOption {
|
||||
}
|
||||
}
|
||||
|
||||
func withBetaAssistantV1() requestOption {
|
||||
func withBetaAssistantVersion(version string) requestOption {
|
||||
return func(args *requestOptions) {
|
||||
args.header.Set("OpenAI-Beta", "assistants=v1")
|
||||
args.header.Set("OpenAI-Beta", fmt.Sprintf("assistants=%s", version))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user