Skip to content

Commit ae088f8

Browse files
Update lib/openai/http.rb
Co-authored-by: Bryan Morrow <bryan@redcanary.com>
1 parent 015cf18 commit ae088f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openai/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def azure_uri(path)
9797

9898
# Remove the deployment to support assistants for azure
9999
if path.include?("/assistants") || path.include?("/threads")
100-
base = base.gsub(%r{/deployments/.+/},
100+
base = base.gsub(%r{/deployments/[^\/]+/},
101101
"/")
102102
end
103103

0 commit comments

Comments
 (0)