mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
This commit is contained in:
@@ -33,10 +33,8 @@ with OpenRouter(
|
||||
},
|
||||
], stream=False, temperature=1, top_p=1)
|
||||
|
||||
with res as event_stream:
|
||||
for event in event_stream:
|
||||
# handle event
|
||||
print(event, flush=True)
|
||||
# Handle response
|
||||
print(res)
|
||||
|
||||
```
|
||||
|
||||
@@ -73,7 +71,7 @@ with OpenRouter(
|
||||
|
||||
### Response
|
||||
|
||||
**[models.CreateChatCompletionResponse](../../models/createchatcompletionresponse.md)**
|
||||
**[models.ChatCompletion](../../models/chatcompletion.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user