File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 241241 end
242242
243243 context "with assistants" do
244- let ( :path ) { "/assistants" }
244+ let ( :path ) { "/assistants/test_assistant_id " }
245245 let ( :uri_base ) { "https://custom-domain.openai.azure.com/openai/deployments/gpt-35-turbo" }
246- it { expect ( uri ) . to eq ( "https://custom-domain.openai.azure.com/openai/assistants?api-version=v1" ) }
246+ it { expect ( uri ) . to eq ( "https://custom-domain.openai.azure.com/openai/assistants/test_assistant_id ?api-version=v1" ) }
247247 end
248248 end
249249 end
You can’t perform that action at this time.
0 commit comments