File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ def create(
392392 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
393393 ) -> CreateResponseResponse | Stream [CreateResponseStreamResponse ]:
394394 return self ._post (
395- "/responses" ,
395+ "/responses" if self . _client . _base_url_overridden else f" { self . _client . inference_endpoint } /v1/responses" ,
396396 body = maybe_transform (
397397 {
398398 "input" : input ,
@@ -791,7 +791,7 @@ async def create(
791791 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
792792 ) -> CreateResponseResponse | AsyncStream [CreateResponseStreamResponse ]:
793793 return await self ._post (
794- "/responses" ,
794+ "/responses" if self . _client . _base_url_overridden else f" { self . _client . inference_endpoint } /v1/responses" ,
795795 body = await async_maybe_transform (
796796 {
797797 "input" : input ,
You can’t perform that action at this time.
0 commit comments