Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/develop/python/integrations/openrouter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ async def _send(self, request: OpenRouterRequest) -> OpenRouterResult:
)

return result

```
<!--SNIPEND-->

Expand Down Expand Up @@ -293,6 +294,7 @@ def spend_report(self) -> SpendReport:
paused=dict(self._paused),
ledger=list(self._ledger),
)

```
<!--SNIPEND-->

Expand Down Expand Up @@ -345,6 +347,7 @@ async def _park(self, prompt: str, reason: str, until: Callable[[], bool]) -> bo
return False
finally:
self._paused.pop(prompt, None)

```
<!--SNIPEND-->

Expand Down Expand Up @@ -416,6 +419,8 @@ def openrouter_provider() -> OpenAIProvider:
# These samples use Chat Completions, OpenRouter's primary endpoint; the
# Agents SDK defaults to the Responses API, which OpenRouter also offers.
return OpenAIProvider(openai_client=client, use_responses=False)


```
<!--SNIPEND-->

Expand Down
Loading