mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
wip setup
This commit is contained in:
@@ -34,8 +34,8 @@ CreateResponsesResponseTypedDict = TypeAliasType(
|
||||
Union[
|
||||
OpenResponsesNonStreamingResponseTypedDict,
|
||||
Union[
|
||||
eventstreaming.EventStream[CreateResponsesResponseBodyTypedDict],
|
||||
eventstreaming.EventStreamAsync[CreateResponsesResponseBodyTypedDict],
|
||||
eventstreaming.EventStream[OpenResponsesStreamEventTypedDict],
|
||||
eventstreaming.EventStreamAsync[OpenResponsesStreamEventTypedDict],
|
||||
],
|
||||
],
|
||||
)
|
||||
@@ -46,8 +46,8 @@ CreateResponsesResponse = TypeAliasType(
|
||||
Union[
|
||||
OpenResponsesNonStreamingResponse,
|
||||
Union[
|
||||
eventstreaming.EventStream[CreateResponsesResponseBody],
|
||||
eventstreaming.EventStreamAsync[CreateResponsesResponseBody],
|
||||
eventstreaming.EventStream[OpenResponsesStreamEvent],
|
||||
eventstreaming.EventStreamAsync[OpenResponsesStreamEvent],
|
||||
],
|
||||
],
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
from __future__ import annotations
|
||||
from .chatresponse import ChatResponse, ChatResponseTypedDict
|
||||
from .chatstreamingresponsechunk import (
|
||||
ChatStreamingResponseChunk,
|
||||
ChatStreamingResponseChunkTypedDict,
|
||||
ChatStreamingResponseChunkData,
|
||||
ChatStreamingResponseChunkDataTypedDict,
|
||||
)
|
||||
from openrouter.utils import eventstreaming
|
||||
from typing import Union
|
||||
@@ -16,8 +16,8 @@ SendChatCompletionRequestResponseTypedDict = TypeAliasType(
|
||||
Union[
|
||||
ChatResponseTypedDict,
|
||||
Union[
|
||||
eventstreaming.EventStream[ChatStreamingResponseChunkTypedDict],
|
||||
eventstreaming.EventStreamAsync[ChatStreamingResponseChunkTypedDict],
|
||||
eventstreaming.EventStream[ChatStreamingResponseChunkDataTypedDict],
|
||||
eventstreaming.EventStreamAsync[ChatStreamingResponseChunkDataTypedDict],
|
||||
],
|
||||
],
|
||||
)
|
||||
@@ -28,8 +28,8 @@ SendChatCompletionRequestResponse = TypeAliasType(
|
||||
Union[
|
||||
ChatResponse,
|
||||
Union[
|
||||
eventstreaming.EventStream[ChatStreamingResponseChunk],
|
||||
eventstreaming.EventStreamAsync[ChatStreamingResponseChunk],
|
||||
eventstreaming.EventStream[ChatStreamingResponseChunkData],
|
||||
eventstreaming.EventStreamAsync[ChatStreamingResponseChunkData],
|
||||
],
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user