wip setup

This commit is contained in:
Matt Apperson
2025-11-13 13:40:55 -05:00
parent 05f81a553c
commit 71ab77e5e8
26 changed files with 101 additions and 99 deletions
+4 -4
View File
@@ -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],
],
],
)