We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7124e46 commit 015cf18Copy full SHA for 015cf18
lib/openai/http.rb
@@ -94,10 +94,13 @@ def uri(path:)
94
95
def azure_uri(path)
96
base = File.join(@uri_base, path)
97
-
+
98
# Remove the deployment to support assistants for azure
99
- base = base.gsub(/\/deployments\/.+\//, '/') if (path.include?('/assistants') || path.include?('/threads'))
100
+ if path.include?("/assistants") || path.include?("/threads")
+ base = base.gsub(%r{/deployments/.+/},
101
+ "/")
102
+ end
103
104
"#{base}?api-version=#{@api_version}"
105
end
106
0 commit comments