diff --git a/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_errors.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_errors.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3c36f57d9c6e279a1225d3ec4f856052f8eac351 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_errors.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_models.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_models.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2ddf6d2cef5b9b045b36dc9af05b7bbd144c9202 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_models.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_progress.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_progress.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6089ea52a655edde92e127fa7d9dd7bc6a456ac3 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/__pycache__/_progress.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..88b9e6fb8e5224ede4411216e3baea260b5d9707 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/_main.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/_main.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..48a285dead75bda10372af4fa4db61b3a686ea9b Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/_main.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/audio.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/audio.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b1c830b2493faa584a64d57ebdb03a4af3e923ae Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/audio.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/completions.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/completions.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..93814ffc8a54c83c6de5b2447afbf7099ecd7a0a Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/completions.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/files.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/files.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a89ced9bfd9de0e54218f387d20d1347d064572a Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/files.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/image.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/image.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c11f40f6e92f6cce68adac097bed88979884daf2 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/image.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/models.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..51ec3e8cc2dc53a6fe6f5864a4f5a8715992b205 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/cli/_api/__pycache__/models.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c9ec34318ef938ecb2ed00997c70150f4dd0923f Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..750cd43660b967f38ce65fcd17539ef26b59d865 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_deleted.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_deleted.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b6db335b9b53c4b546ab2b83980da85ea37929ce Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_deleted.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_response_format_option_param.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_response_format_option_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..46b98270172ee6a3b3ea6dfa3fb6a2e4d56b7915 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_response_format_option_param.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_stream_event.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_stream_event.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..549c2c00d066054f395b9e806b85dc5456794339 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_stream_event.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..490744a3941c16616859915eee63091c8672d7a5 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function_param.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..97cdbac715345637178ed812d12e21a10df411dd Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function_param.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_param.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4d902f88ec6b89f5a759f7ebbd1a45a88f233100 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_param.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/code_interpreter_tool_param.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/code_interpreter_tool_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fe1c821bab44c6bf660df2d9147376d8514ec3aa Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/code_interpreter_tool_param.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_chunking_strategy.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_chunking_strategy.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..441ba1f4f4c9922dfbc92b901e3c74e8f15599d8 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_chunking_strategy.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_chunking_strategy_param.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_chunking_strategy_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..df9ba332109212ad4ee51872d6c90d715986dc8a Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_chunking_strategy_param.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_search_tool.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_search_tool.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d08799adcd483dcf8dddf2e7552526b693ec28f8 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_search_tool.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_search_tool_param.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_search_tool_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..81002175066c9384fa4e6a0cd25de29ce4fd72be Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/file_search_tool_param.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/function_tool_param.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/function_tool_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f4cb5cafa39d7e79cee3fa0020672670075c599d Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/function_tool_param.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/other_file_chunking_strategy_object.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/other_file_chunking_strategy_object.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c5213841244532eb02acf3ef1ecc465f2a63b6c7 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/other_file_chunking_strategy_object.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7e49f33b62c2183f8d3e110364327cb0d797861a Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy_object.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy_object.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1e8b5270565aedfa00da76006715a8586af69b67 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy_object.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy_param.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2ae7da1ca96140b4040e58fe6e688a90395408e0 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/static_file_chunking_strategy_param.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_create_params.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_create_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aa90a5e089c155630f8d1f1d7290d57897351f3c Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_create_params.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_deleted.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_deleted.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7bb43d74a06110fbebc7c07ca9202d91e6222ecc Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_deleted.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_update_params.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_update_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..585be8d3a8e2a74eb855e1ad3a8f5259709223c1 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/thread_update_params.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..30c32183ab2aa3c3bf2d607f116760dd447502ba Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_deleted.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_deleted.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..071a9ed7c579e2fb56b7d4e04169350ae612cf40 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_deleted.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_list_params.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_list_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bd49eb21958a4f3960681cb4d93a7fc045616fae Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_list_params.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_update_params.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_update_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..60d8f3d1d81fbe25230080005f11bb56dfe0b116 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/__pycache__/vector_store_update_params.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/chat/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/openai/types/beta/chat/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74183fa7d1cd4c0cb5e0d1693bb4688a489fc46d Binary files /dev/null and b/vllm/lib/python3.10/site-packages/openai/types/beta/chat/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/__init__.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..70853177bd6d0899ec330b087307432a43c10f15 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/__init__.py @@ -0,0 +1,46 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .run import Run as Run +from .text import Text as Text +from .message import Message as Message +from .image_url import ImageURL as ImageURL +from .annotation import Annotation as Annotation +from .image_file import ImageFile as ImageFile +from .run_status import RunStatus as RunStatus +from .text_delta import TextDelta as TextDelta +from .message_delta import MessageDelta as MessageDelta +from .image_url_delta import ImageURLDelta as ImageURLDelta +from .image_url_param import ImageURLParam as ImageURLParam +from .message_content import MessageContent as MessageContent +from .message_deleted import MessageDeleted as MessageDeleted +from .run_list_params import RunListParams as RunListParams +from .annotation_delta import AnnotationDelta as AnnotationDelta +from .image_file_delta import ImageFileDelta as ImageFileDelta +from .image_file_param import ImageFileParam as ImageFileParam +from .text_delta_block import TextDeltaBlock as TextDeltaBlock +from .run_create_params import RunCreateParams as RunCreateParams +from .run_update_params import RunUpdateParams as RunUpdateParams +from .text_content_block import TextContentBlock as TextContentBlock +from .message_delta_event import MessageDeltaEvent as MessageDeltaEvent +from .message_list_params import MessageListParams as MessageListParams +from .refusal_delta_block import RefusalDeltaBlock as RefusalDeltaBlock +from .file_path_annotation import FilePathAnnotation as FilePathAnnotation +from .image_url_delta_block import ImageURLDeltaBlock as ImageURLDeltaBlock +from .message_content_delta import MessageContentDelta as MessageContentDelta +from .message_create_params import MessageCreateParams as MessageCreateParams +from .message_update_params import MessageUpdateParams as MessageUpdateParams +from .refusal_content_block import RefusalContentBlock as RefusalContentBlock +from .image_file_delta_block import ImageFileDeltaBlock as ImageFileDeltaBlock +from .image_url_content_block import ImageURLContentBlock as ImageURLContentBlock +from .file_citation_annotation import FileCitationAnnotation as FileCitationAnnotation +from .image_file_content_block import ImageFileContentBlock as ImageFileContentBlock +from .text_content_block_param import TextContentBlockParam as TextContentBlockParam +from .file_path_delta_annotation import FilePathDeltaAnnotation as FilePathDeltaAnnotation +from .message_content_part_param import MessageContentPartParam as MessageContentPartParam +from .image_url_content_block_param import ImageURLContentBlockParam as ImageURLContentBlockParam +from .file_citation_delta_annotation import FileCitationDeltaAnnotation as FileCitationDeltaAnnotation +from .image_file_content_block_param import ImageFileContentBlockParam as ImageFileContentBlockParam +from .run_submit_tool_outputs_params import RunSubmitToolOutputsParams as RunSubmitToolOutputsParams +from .required_action_function_tool_call import RequiredActionFunctionToolCall as RequiredActionFunctionToolCall diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/annotation.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/annotation.py new file mode 100644 index 0000000000000000000000000000000000000000..13c10abf4d840c51453a26ce7b2d0e38476f4f20 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/annotation.py @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ...._utils import PropertyInfo +from .file_path_annotation import FilePathAnnotation +from .file_citation_annotation import FileCitationAnnotation + +__all__ = ["Annotation"] + +Annotation: TypeAlias = Annotated[Union[FileCitationAnnotation, FilePathAnnotation], PropertyInfo(discriminator="type")] diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/annotation_delta.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/annotation_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..c7c6c89837c21f845c8b56a208627e6751c4b161 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/annotation_delta.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ...._utils import PropertyInfo +from .file_path_delta_annotation import FilePathDeltaAnnotation +from .file_citation_delta_annotation import FileCitationDeltaAnnotation + +__all__ = ["AnnotationDelta"] + +AnnotationDelta: TypeAlias = Annotated[ + Union[FileCitationDeltaAnnotation, FilePathDeltaAnnotation], PropertyInfo(discriminator="type") +] diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_citation_annotation.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_citation_annotation.py new file mode 100644 index 0000000000000000000000000000000000000000..c3085aed9bfc7453f2dbe9de3f35e1992f19f9ed --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_citation_annotation.py @@ -0,0 +1,26 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["FileCitationAnnotation", "FileCitation"] + + +class FileCitation(BaseModel): + file_id: str + """The ID of the specific File the citation is from.""" + + +class FileCitationAnnotation(BaseModel): + end_index: int + + file_citation: FileCitation + + start_index: int + + text: str + """The text in the message content that needs to be replaced.""" + + type: Literal["file_citation"] + """Always `file_citation`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_path_annotation.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_path_annotation.py new file mode 100644 index 0000000000000000000000000000000000000000..9812737ece4c817e0a96313af42d8460aa9fbb25 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_path_annotation.py @@ -0,0 +1,26 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["FilePathAnnotation", "FilePath"] + + +class FilePath(BaseModel): + file_id: str + """The ID of the file that was generated.""" + + +class FilePathAnnotation(BaseModel): + end_index: int + + file_path: FilePath + + start_index: int + + text: str + """The text in the message content that needs to be replaced.""" + + type: Literal["file_path"] + """Always `file_path`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_path_delta_annotation.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_path_delta_annotation.py new file mode 100644 index 0000000000000000000000000000000000000000..0cbb445e48193ba721ac17965feabdb5511eeb2f --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/file_path_delta_annotation.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["FilePathDeltaAnnotation", "FilePath"] + + +class FilePath(BaseModel): + file_id: Optional[str] = None + """The ID of the file that was generated.""" + + +class FilePathDeltaAnnotation(BaseModel): + index: int + """The index of the annotation in the text content part.""" + + type: Literal["file_path"] + """Always `file_path`.""" + + end_index: Optional[int] = None + + file_path: Optional[FilePath] = None + + start_index: Optional[int] = None + + text: Optional[str] = None + """The text in the message content that needs to be replaced.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file.py new file mode 100644 index 0000000000000000000000000000000000000000..6000d97500580e64134b0a5f7b39dbbc90fe2444 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ImageFile"] + + +class ImageFile(BaseModel): + file_id: str + """ + The [File](https://platform.openai.com/docs/api-reference/files) ID of the image + in the message content. Set `purpose="vision"` when uploading the File if you + need to later display the file content. + """ + + detail: Optional[Literal["auto", "low", "high"]] = None + """Specifies the detail level of the image if specified by the user. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_content_block.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_content_block.py new file mode 100644 index 0000000000000000000000000000000000000000..a909999065653e17e9b7a919e2995867abb9d3c8 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_content_block.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from .image_file import ImageFile + +__all__ = ["ImageFileContentBlock"] + + +class ImageFileContentBlock(BaseModel): + image_file: ImageFile + + type: Literal["image_file"] + """Always `image_file`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_content_block_param.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_content_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..48d94bee3621138170b473fee2c8b2395c526afb --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_content_block_param.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +from .image_file_param import ImageFileParam + +__all__ = ["ImageFileContentBlockParam"] + + +class ImageFileContentBlockParam(TypedDict, total=False): + image_file: Required[ImageFileParam] + + type: Required[Literal["image_file"]] + """Always `image_file`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_delta.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..4581184c7ae8df83168ea67bed1ff41e93d54f35 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_delta.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ImageFileDelta"] + + +class ImageFileDelta(BaseModel): + detail: Optional[Literal["auto", "low", "high"]] = None + """Specifies the detail level of the image if specified by the user. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. + """ + + file_id: Optional[str] = None + """ + The [File](https://platform.openai.com/docs/api-reference/files) ID of the image + in the message content. Set `purpose="vision"` when uploading the File if you + need to later display the file content. + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_delta_block.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_delta_block.py new file mode 100644 index 0000000000000000000000000000000000000000..0a5a2e8a5ff2e100bb83ae5f5992f46a866fb5ae --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_delta_block.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .image_file_delta import ImageFileDelta + +__all__ = ["ImageFileDeltaBlock"] + + +class ImageFileDeltaBlock(BaseModel): + index: int + """The index of the content part in the message.""" + + type: Literal["image_file"] + """Always `image_file`.""" + + image_file: Optional[ImageFileDelta] = None diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_param.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_param.py new file mode 100644 index 0000000000000000000000000000000000000000..e4a85358b992ce142009ca8d4816d240cb5c442e --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_file_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ImageFileParam"] + + +class ImageFileParam(TypedDict, total=False): + file_id: Required[str] + """ + The [File](https://platform.openai.com/docs/api-reference/files) ID of the image + in the message content. Set `purpose="vision"` when uploading the File if you + need to later display the file content. + """ + + detail: Literal["auto", "low", "high"] + """Specifies the detail level of the image if specified by the user. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url.py new file mode 100644 index 0000000000000000000000000000000000000000..d1fac147b244931b99c3fd1148e6c25cf3e027d2 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ImageURL"] + + +class ImageURL(BaseModel): + url: str + """ + The external URL of the image, must be a supported image types: jpeg, jpg, png, + gif, webp. + """ + + detail: Optional[Literal["auto", "low", "high"]] = None + """Specifies the detail level of the image. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. Default + value is `auto` + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_content_block.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_content_block.py new file mode 100644 index 0000000000000000000000000000000000000000..40a16c1df88829c3091951ed3792fc22f0a0bd71 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_content_block.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from .image_url import ImageURL +from ...._models import BaseModel + +__all__ = ["ImageURLContentBlock"] + + +class ImageURLContentBlock(BaseModel): + image_url: ImageURL + + type: Literal["image_url"] + """The type of the content part.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_content_block_param.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_content_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..585b926c5833812b2e8b4abb687fbc4999fbad6c --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_content_block_param.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +from .image_url_param import ImageURLParam + +__all__ = ["ImageURLContentBlockParam"] + + +class ImageURLContentBlockParam(TypedDict, total=False): + image_url: Required[ImageURLParam] + + type: Required[Literal["image_url"]] + """The type of the content part.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_delta.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..e402671908d507e41bbc5efcad785f9db75b61ec --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_delta.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ImageURLDelta"] + + +class ImageURLDelta(BaseModel): + detail: Optional[Literal["auto", "low", "high"]] = None + """Specifies the detail level of the image. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. + """ + + url: Optional[str] = None + """ + The URL of the image, must be a supported image types: jpeg, jpg, png, gif, + webp. + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_delta_block.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_delta_block.py new file mode 100644 index 0000000000000000000000000000000000000000..5252da12ddb3260dc9e0411e4cbee2e1b4d0acdc --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_delta_block.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .image_url_delta import ImageURLDelta + +__all__ = ["ImageURLDeltaBlock"] + + +class ImageURLDeltaBlock(BaseModel): + index: int + """The index of the content part in the message.""" + + type: Literal["image_url"] + """Always `image_url`.""" + + image_url: Optional[ImageURLDelta] = None diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_param.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_param.py new file mode 100644 index 0000000000000000000000000000000000000000..6b7e427eddab862e69bd8aedf8ad42d5f22caf32 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/image_url_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ImageURLParam"] + + +class ImageURLParam(TypedDict, total=False): + url: Required[str] + """ + The external URL of the image, must be a supported image types: jpeg, jpg, png, + gif, webp. + """ + + detail: Literal["auto", "low", "high"] + """Specifies the detail level of the image. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. Default + value is `auto` + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message.py new file mode 100644 index 0000000000000000000000000000000000000000..63c5c4800a39cf15fabe79a198ec9fda4c640e24 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message.py @@ -0,0 +1,100 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ...._models import BaseModel +from .message_content import MessageContent +from ..code_interpreter_tool import CodeInterpreterTool + +__all__ = [ + "Message", + "Attachment", + "AttachmentTool", + "AttachmentToolAssistantToolsFileSearchTypeOnly", + "IncompleteDetails", +] + + +class AttachmentToolAssistantToolsFileSearchTypeOnly(BaseModel): + type: Literal["file_search"] + """The type of tool being defined: `file_search`""" + + +AttachmentTool: TypeAlias = Union[CodeInterpreterTool, AttachmentToolAssistantToolsFileSearchTypeOnly] + + +class Attachment(BaseModel): + file_id: Optional[str] = None + """The ID of the file to attach to the message.""" + + tools: Optional[List[AttachmentTool]] = None + """The tools to add this file to.""" + + +class IncompleteDetails(BaseModel): + reason: Literal["content_filter", "max_tokens", "run_cancelled", "run_expired", "run_failed"] + """The reason the message is incomplete.""" + + +class Message(BaseModel): + id: str + """The identifier, which can be referenced in API endpoints.""" + + assistant_id: Optional[str] = None + """ + If applicable, the ID of the + [assistant](https://platform.openai.com/docs/api-reference/assistants) that + authored this message. + """ + + attachments: Optional[List[Attachment]] = None + """A list of files attached to the message, and the tools they were added to.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the message was completed.""" + + content: List[MessageContent] + """The content of the message in array of text and/or images.""" + + created_at: int + """The Unix timestamp (in seconds) for when the message was created.""" + + incomplete_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the message was marked as incomplete.""" + + incomplete_details: Optional[IncompleteDetails] = None + """On an incomplete message, details about why the message is incomplete.""" + + metadata: Optional[object] = None + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. Keys can be a maximum of 64 characters long and values can be + a maximum of 512 characters long. + """ + + object: Literal["thread.message"] + """The object type, which is always `thread.message`.""" + + role: Literal["user", "assistant"] + """The entity that produced the message. One of `user` or `assistant`.""" + + run_id: Optional[str] = None + """ + The ID of the [run](https://platform.openai.com/docs/api-reference/runs) + associated with the creation of this message. Value is `null` when messages are + created manually using the create message or create thread endpoints. + """ + + status: Literal["in_progress", "incomplete", "completed"] + """ + The status of the message, which can be either `in_progress`, `incomplete`, or + `completed`. + """ + + thread_id: str + """ + The [thread](https://platform.openai.com/docs/api-reference/threads) ID that + this message belongs to. + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content.py new file mode 100644 index 0000000000000000000000000000000000000000..9523c1e1b9059f4a5af30485d5dbcb46c95d6b2e --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ...._utils import PropertyInfo +from .text_content_block import TextContentBlock +from .refusal_content_block import RefusalContentBlock +from .image_url_content_block import ImageURLContentBlock +from .image_file_content_block import ImageFileContentBlock + +__all__ = ["MessageContent"] + + +MessageContent: TypeAlias = Annotated[ + Union[ImageFileContentBlock, ImageURLContentBlock, TextContentBlock, RefusalContentBlock], + PropertyInfo(discriminator="type"), +] diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content_delta.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..b6e7dfa45ad7a2cf013f9e0a2c41335a76c497b7 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content_delta.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ...._utils import PropertyInfo +from .text_delta_block import TextDeltaBlock +from .refusal_delta_block import RefusalDeltaBlock +from .image_url_delta_block import ImageURLDeltaBlock +from .image_file_delta_block import ImageFileDeltaBlock + +__all__ = ["MessageContentDelta"] + +MessageContentDelta: TypeAlias = Annotated[ + Union[ImageFileDeltaBlock, TextDeltaBlock, RefusalDeltaBlock, ImageURLDeltaBlock], + PropertyInfo(discriminator="type"), +] diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content_part_param.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content_part_param.py new file mode 100644 index 0000000000000000000000000000000000000000..dc09a01c2706324aee2cafba19004973018956e8 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_content_part_param.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .text_content_block_param import TextContentBlockParam +from .image_url_content_block_param import ImageURLContentBlockParam +from .image_file_content_block_param import ImageFileContentBlockParam + +__all__ = ["MessageContentPartParam"] + +MessageContentPartParam: TypeAlias = Union[ImageFileContentBlockParam, ImageURLContentBlockParam, TextContentBlockParam] diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_create_params.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..2c4edfdf7151a902654359d4c35abc56fd08de01 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_create_params.py @@ -0,0 +1,52 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from .message_content_part_param import MessageContentPartParam +from ..code_interpreter_tool_param import CodeInterpreterToolParam + +__all__ = ["MessageCreateParams", "Attachment", "AttachmentTool", "AttachmentToolFileSearch"] + + +class MessageCreateParams(TypedDict, total=False): + content: Required[Union[str, Iterable[MessageContentPartParam]]] + """The text contents of the message.""" + + role: Required[Literal["user", "assistant"]] + """The role of the entity that is creating the message. Allowed values include: + + - `user`: Indicates the message is sent by an actual user and should be used in + most cases to represent user-generated messages. + - `assistant`: Indicates the message is generated by the assistant. Use this + value to insert messages from the assistant into the conversation. + """ + + attachments: Optional[Iterable[Attachment]] + """A list of files attached to the message, and the tools they should be added to.""" + + metadata: Optional[object] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. Keys can be a maximum of 64 characters long and values can be + a maximum of 512 characters long. + """ + + +class AttachmentToolFileSearch(TypedDict, total=False): + type: Required[Literal["file_search"]] + """The type of tool being defined: `file_search`""" + + +AttachmentTool: TypeAlias = Union[CodeInterpreterToolParam, AttachmentToolFileSearch] + + +class Attachment(TypedDict, total=False): + file_id: str + """The ID of the file to attach to the message.""" + + tools: Iterable[AttachmentTool] + """The tools to add this file to.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_delta.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..ecd0dfe319a600979c0975fd50f07ac0f6de97d0 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_delta.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .message_content_delta import MessageContentDelta + +__all__ = ["MessageDelta"] + + +class MessageDelta(BaseModel): + content: Optional[List[MessageContentDelta]] = None + """The content of the message in array of text and/or images.""" + + role: Optional[Literal["user", "assistant"]] = None + """The entity that produced the message. One of `user` or `assistant`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_delta_event.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_delta_event.py new file mode 100644 index 0000000000000000000000000000000000000000..3811cef679607a4b0061119e7d0ca7d02b6a7f43 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_delta_event.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from .message_delta import MessageDelta + +__all__ = ["MessageDeltaEvent"] + + +class MessageDeltaEvent(BaseModel): + id: str + """The identifier of the message, which can be referenced in API endpoints.""" + + delta: MessageDelta + """The delta containing the fields that have changed on the Message.""" + + object: Literal["thread.message.delta"] + """The object type, which is always `thread.message.delta`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_list_params.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..a7c22a66fb14e2c8c8aeb4409cdab69548b3f7dc --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_list_params.py @@ -0,0 +1,42 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["MessageListParams"] + + +class MessageListParams(TypedDict, total=False): + after: str + """A cursor for use in pagination. + + `after` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, ending with obj_foo, your + subsequent call can include after=obj_foo in order to fetch the next page of the + list. + """ + + before: str + """A cursor for use in pagination. + + `before` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, starting with obj_foo, your + subsequent call can include before=obj_foo in order to fetch the previous page + of the list. + """ + + limit: int + """A limit on the number of objects to be returned. + + Limit can range between 1 and 100, and the default is 20. + """ + + order: Literal["asc", "desc"] + """Sort order by the `created_at` timestamp of the objects. + + `asc` for ascending order and `desc` for descending order. + """ + + run_id: str + """Filter messages by the run ID that generated them.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_update_params.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_update_params.py new file mode 100644 index 0000000000000000000000000000000000000000..e8f8cc910cba80f267640900f3e6495502416b61 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/message_update_params.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Required, TypedDict + +__all__ = ["MessageUpdateParams"] + + +class MessageUpdateParams(TypedDict, total=False): + thread_id: Required[str] + + metadata: Optional[object] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. Keys can be a maximum of 64 characters long and values can be + a maximum of 512 characters long. + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/refusal_content_block.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/refusal_content_block.py new file mode 100644 index 0000000000000000000000000000000000000000..d54f948554aa86013830b7a485e177915c5dfefd --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/refusal_content_block.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["RefusalContentBlock"] + + +class RefusalContentBlock(BaseModel): + refusal: str + + type: Literal["refusal"] + """Always `refusal`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/refusal_delta_block.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/refusal_delta_block.py new file mode 100644 index 0000000000000000000000000000000000000000..dbd8e62697560c51eb76829bb478682f84b9ffe8 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/refusal_delta_block.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["RefusalDeltaBlock"] + + +class RefusalDeltaBlock(BaseModel): + index: int + """The index of the refusal part in the message.""" + + type: Literal["refusal"] + """Always `refusal`.""" + + refusal: Optional[str] = None diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run.py new file mode 100644 index 0000000000000000000000000000000000000000..ad32135b7d440385c243c29839c9fd3844e7e011 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run.py @@ -0,0 +1,242 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .run_status import RunStatus +from ..assistant_tool import AssistantTool +from ..assistant_tool_choice_option import AssistantToolChoiceOption +from ..assistant_response_format_option import AssistantResponseFormatOption +from .required_action_function_tool_call import RequiredActionFunctionToolCall + +__all__ = [ + "Run", + "IncompleteDetails", + "LastError", + "RequiredAction", + "RequiredActionSubmitToolOutputs", + "TruncationStrategy", + "Usage", +] + + +class IncompleteDetails(BaseModel): + reason: Optional[Literal["max_completion_tokens", "max_prompt_tokens"]] = None + """The reason why the run is incomplete. + + This will point to which specific token limit was reached over the course of the + run. + """ + + +class LastError(BaseModel): + code: Literal["server_error", "rate_limit_exceeded", "invalid_prompt"] + """One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.""" + + message: str + """A human-readable description of the error.""" + + +class RequiredActionSubmitToolOutputs(BaseModel): + tool_calls: List[RequiredActionFunctionToolCall] + """A list of the relevant tool calls.""" + + +class RequiredAction(BaseModel): + submit_tool_outputs: RequiredActionSubmitToolOutputs + """Details on the tool outputs needed for this run to continue.""" + + type: Literal["submit_tool_outputs"] + """For now, this is always `submit_tool_outputs`.""" + + +class TruncationStrategy(BaseModel): + type: Literal["auto", "last_messages"] + """The truncation strategy to use for the thread. + + The default is `auto`. If set to `last_messages`, the thread will be truncated + to the n most recent messages in the thread. When set to `auto`, messages in the + middle of the thread will be dropped to fit the context length of the model, + `max_prompt_tokens`. + """ + + last_messages: Optional[int] = None + """ + The number of most recent messages from the thread when constructing the context + for the run. + """ + + +class Usage(BaseModel): + completion_tokens: int + """Number of completion tokens used over the course of the run.""" + + prompt_tokens: int + """Number of prompt tokens used over the course of the run.""" + + total_tokens: int + """Total number of tokens used (prompt + completion).""" + + +class Run(BaseModel): + id: str + """The identifier, which can be referenced in API endpoints.""" + + assistant_id: str + """ + The ID of the + [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + execution of this run. + """ + + cancelled_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run was cancelled.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run was completed.""" + + created_at: int + """The Unix timestamp (in seconds) for when the run was created.""" + + expires_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run will expire.""" + + failed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run failed.""" + + incomplete_details: Optional[IncompleteDetails] = None + """Details on why the run is incomplete. + + Will be `null` if the run is not incomplete. + """ + + instructions: str + """ + The instructions that the + [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + this run. + """ + + last_error: Optional[LastError] = None + """The last error associated with this run. Will be `null` if there are no errors.""" + + max_completion_tokens: Optional[int] = None + """ + The maximum number of completion tokens specified to have been used over the + course of the run. + """ + + max_prompt_tokens: Optional[int] = None + """ + The maximum number of prompt tokens specified to have been used over the course + of the run. + """ + + metadata: Optional[object] = None + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. Keys can be a maximum of 64 characters long and values can be + a maximum of 512 characters long. + """ + + model: str + """ + The model that the + [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + this run. + """ + + object: Literal["thread.run"] + """The object type, which is always `thread.run`.""" + + parallel_tool_calls: bool + """ + Whether to enable + [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + during tool use. + """ + + required_action: Optional[RequiredAction] = None + """Details on the action required to continue the run. + + Will be `null` if no action is required. + """ + + response_format: Optional[AssistantResponseFormatOption] = None + """Specifies the format that the model must output. + + Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + + Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + Outputs which ensures the model will match your supplied JSON schema. Learn more + in the + [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + + Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + message the model generates is valid JSON. + + **Important:** when using JSON mode, you **must** also instruct the model to + produce JSON yourself via a system or user message. Without this, the model may + generate an unending stream of whitespace until the generation reaches the token + limit, resulting in a long-running and seemingly "stuck" request. Also note that + the message content may be partially cut off if `finish_reason="length"`, which + indicates the generation exceeded `max_tokens` or the conversation exceeded the + max context length. + """ + + started_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run was started.""" + + status: RunStatus + """ + The status of the run, which can be either `queued`, `in_progress`, + `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, + `incomplete`, or `expired`. + """ + + thread_id: str + """ + The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + that was executed on as a part of this run. + """ + + tool_choice: Optional[AssistantToolChoiceOption] = None + """ + Controls which (if any) tool is called by the model. `none` means the model will + not call any tools and instead generates a message. `auto` is the default value + and means the model can pick between generating a message or calling one or more + tools. `required` means the model must call one or more tools before responding + to the user. Specifying a particular tool like `{"type": "file_search"}` or + `{"type": "function", "function": {"name": "my_function"}}` forces the model to + call that tool. + """ + + tools: List[AssistantTool] + """ + The list of tools that the + [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + this run. + """ + + truncation_strategy: Optional[TruncationStrategy] = None + """Controls for how a thread will be truncated prior to the run. + + Use this to control the intial context window of the run. + """ + + usage: Optional[Usage] = None + """Usage statistics related to the run. + + This value will be `null` if the run is not in a terminal state (i.e. + `in_progress`, `queued`, etc.). + """ + + temperature: Optional[float] = None + """The sampling temperature used for this run. If not set, defaults to 1.""" + + top_p: Optional[float] = None + """The nucleus sampling value used for this run. If not set, defaults to 1.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_create_params.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..88dc39645e6cc088f8f869ff93fe6ca6d3262da9 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_create_params.py @@ -0,0 +1,246 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from ...chat_model import ChatModel +from ..assistant_tool_param import AssistantToolParam +from .runs.run_step_include import RunStepInclude +from .message_content_part_param import MessageContentPartParam +from ..code_interpreter_tool_param import CodeInterpreterToolParam +from ..assistant_tool_choice_option_param import AssistantToolChoiceOptionParam +from ..assistant_response_format_option_param import AssistantResponseFormatOptionParam + +__all__ = [ + "RunCreateParamsBase", + "AdditionalMessage", + "AdditionalMessageAttachment", + "AdditionalMessageAttachmentTool", + "AdditionalMessageAttachmentToolFileSearch", + "TruncationStrategy", + "RunCreateParamsNonStreaming", + "RunCreateParamsStreaming", +] + + +class RunCreateParamsBase(TypedDict, total=False): + assistant_id: Required[str] + """ + The ID of the + [assistant](https://platform.openai.com/docs/api-reference/assistants) to use to + execute this run. + """ + + include: List[RunStepInclude] + """A list of additional fields to include in the response. + + Currently the only supported value is + `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + search result content. + + See the + [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + for more information. + """ + + additional_instructions: Optional[str] + """Appends additional instructions at the end of the instructions for the run. + + This is useful for modifying the behavior on a per-run basis without overriding + other instructions. + """ + + additional_messages: Optional[Iterable[AdditionalMessage]] + """Adds additional messages to the thread before creating the run.""" + + instructions: Optional[str] + """ + Overrides the + [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant) + of the assistant. This is useful for modifying the behavior on a per-run basis. + """ + + max_completion_tokens: Optional[int] + """ + The maximum number of completion tokens that may be used over the course of the + run. The run will make a best effort to use only the number of completion tokens + specified, across multiple turns of the run. If the run exceeds the number of + completion tokens specified, the run will end with status `incomplete`. See + `incomplete_details` for more info. + """ + + max_prompt_tokens: Optional[int] + """The maximum number of prompt tokens that may be used over the course of the run. + + The run will make a best effort to use only the number of prompt tokens + specified, across multiple turns of the run. If the run exceeds the number of + prompt tokens specified, the run will end with status `incomplete`. See + `incomplete_details` for more info. + """ + + metadata: Optional[object] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. Keys can be a maximum of 64 characters long and values can be + a maximum of 512 characters long. + """ + + model: Union[str, ChatModel, None] + """ + The ID of the [Model](https://platform.openai.com/docs/api-reference/models) to + be used to execute this run. If a value is provided here, it will override the + model associated with the assistant. If not, the model associated with the + assistant will be used. + """ + + parallel_tool_calls: bool + """ + Whether to enable + [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + during tool use. + """ + + response_format: Optional[AssistantResponseFormatOptionParam] + """Specifies the format that the model must output. + + Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + + Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + Outputs which ensures the model will match your supplied JSON schema. Learn more + in the + [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + + Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + message the model generates is valid JSON. + + **Important:** when using JSON mode, you **must** also instruct the model to + produce JSON yourself via a system or user message. Without this, the model may + generate an unending stream of whitespace until the generation reaches the token + limit, resulting in a long-running and seemingly "stuck" request. Also note that + the message content may be partially cut off if `finish_reason="length"`, which + indicates the generation exceeded `max_tokens` or the conversation exceeded the + max context length. + """ + + temperature: Optional[float] + """What sampling temperature to use, between 0 and 2. + + Higher values like 0.8 will make the output more random, while lower values like + 0.2 will make it more focused and deterministic. + """ + + tool_choice: Optional[AssistantToolChoiceOptionParam] + """ + Controls which (if any) tool is called by the model. `none` means the model will + not call any tools and instead generates a message. `auto` is the default value + and means the model can pick between generating a message or calling one or more + tools. `required` means the model must call one or more tools before responding + to the user. Specifying a particular tool like `{"type": "file_search"}` or + `{"type": "function", "function": {"name": "my_function"}}` forces the model to + call that tool. + """ + + tools: Optional[Iterable[AssistantToolParam]] + """Override the tools the assistant can use for this run. + + This is useful for modifying the behavior on a per-run basis. + """ + + top_p: Optional[float] + """ + An alternative to sampling with temperature, called nucleus sampling, where the + model considers the results of the tokens with top_p probability mass. So 0.1 + means only the tokens comprising the top 10% probability mass are considered. + + We generally recommend altering this or temperature but not both. + """ + + truncation_strategy: Optional[TruncationStrategy] + """Controls for how a thread will be truncated prior to the run. + + Use this to control the intial context window of the run. + """ + + +class AdditionalMessageAttachmentToolFileSearch(TypedDict, total=False): + type: Required[Literal["file_search"]] + """The type of tool being defined: `file_search`""" + + +AdditionalMessageAttachmentTool: TypeAlias = Union[CodeInterpreterToolParam, AdditionalMessageAttachmentToolFileSearch] + + +class AdditionalMessageAttachment(TypedDict, total=False): + file_id: str + """The ID of the file to attach to the message.""" + + tools: Iterable[AdditionalMessageAttachmentTool] + """The tools to add this file to.""" + + +class AdditionalMessage(TypedDict, total=False): + content: Required[Union[str, Iterable[MessageContentPartParam]]] + """The text contents of the message.""" + + role: Required[Literal["user", "assistant"]] + """The role of the entity that is creating the message. Allowed values include: + + - `user`: Indicates the message is sent by an actual user and should be used in + most cases to represent user-generated messages. + - `assistant`: Indicates the message is generated by the assistant. Use this + value to insert messages from the assistant into the conversation. + """ + + attachments: Optional[Iterable[AdditionalMessageAttachment]] + """A list of files attached to the message, and the tools they should be added to.""" + + metadata: Optional[object] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. Keys can be a maximum of 64 characters long and values can be + a maximum of 512 characters long. + """ + + +class TruncationStrategy(TypedDict, total=False): + type: Required[Literal["auto", "last_messages"]] + """The truncation strategy to use for the thread. + + The default is `auto`. If set to `last_messages`, the thread will be truncated + to the n most recent messages in the thread. When set to `auto`, messages in the + middle of the thread will be dropped to fit the context length of the model, + `max_prompt_tokens`. + """ + + last_messages: Optional[int] + """ + The number of most recent messages from the thread when constructing the context + for the run. + """ + + +class RunCreateParamsNonStreaming(RunCreateParamsBase, total=False): + stream: Optional[Literal[False]] + """ + If `true`, returns a stream of events that happen during the Run as server-sent + events, terminating when the Run enters a terminal state with a `data: [DONE]` + message. + """ + + +class RunCreateParamsStreaming(RunCreateParamsBase): + stream: Required[Literal[True]] + """ + If `true`, returns a stream of events that happen during the Run as server-sent + events, terminating when the Run enters a terminal state with a `data: [DONE]` + message. + """ + + +RunCreateParams = Union[RunCreateParamsNonStreaming, RunCreateParamsStreaming] diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_list_params.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..fbea54f6f206294891a8e2fa8a65690c84d4d051 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_list_params.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["RunListParams"] + + +class RunListParams(TypedDict, total=False): + after: str + """A cursor for use in pagination. + + `after` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, ending with obj_foo, your + subsequent call can include after=obj_foo in order to fetch the next page of the + list. + """ + + before: str + """A cursor for use in pagination. + + `before` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, starting with obj_foo, your + subsequent call can include before=obj_foo in order to fetch the previous page + of the list. + """ + + limit: int + """A limit on the number of objects to be returned. + + Limit can range between 1 and 100, and the default is 20. + """ + + order: Literal["asc", "desc"] + """Sort order by the `created_at` timestamp of the objects. + + `asc` for ascending order and `desc` for descending order. + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_status.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_status.py new file mode 100644 index 0000000000000000000000000000000000000000..47c7cbd0073571fd2085a6ab69dc2ed106104e39 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_status.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal, TypeAlias + +__all__ = ["RunStatus"] + +RunStatus: TypeAlias = Literal[ + "queued", + "in_progress", + "requires_action", + "cancelling", + "cancelled", + "failed", + "completed", + "incomplete", + "expired", +] diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_update_params.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_update_params.py new file mode 100644 index 0000000000000000000000000000000000000000..cb4f05364538b6d2ea9bc8ebbb41c7b99f3d4984 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/run_update_params.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Required, TypedDict + +__all__ = ["RunUpdateParams"] + + +class RunUpdateParams(TypedDict, total=False): + thread_id: Required[str] + + metadata: Optional[object] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format. Keys can be a maximum of 64 characters long and values can be + a maximum of 512 characters long. + """ diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text.py new file mode 100644 index 0000000000000000000000000000000000000000..853bec29556cf8031185fe36eacbbc8f7864cc67 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List + +from ...._models import BaseModel +from .annotation import Annotation + +__all__ = ["Text"] + + +class Text(BaseModel): + annotations: List[Annotation] + + value: str + """The data that makes up the text.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_content_block.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_content_block.py new file mode 100644 index 0000000000000000000000000000000000000000..3706d6b9d82f879dd3b3fe48f6ab2f4c8203e0a9 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_content_block.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from .text import Text +from ...._models import BaseModel + +__all__ = ["TextContentBlock"] + + +class TextContentBlock(BaseModel): + text: Text + + type: Literal["text"] + """Always `text`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_content_block_param.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_content_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..6313de32ccbcd13df936999fca7a1c34c9341d44 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_content_block_param.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["TextContentBlockParam"] + + +class TextContentBlockParam(TypedDict, total=False): + text: Required[str] + """Text content to be sent to the model""" + + type: Required[Literal["text"]] + """Always `text`.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_delta.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..09cd357027867f15c24bff1ec59e0b059e6341c8 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_delta.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional + +from ...._models import BaseModel +from .annotation_delta import AnnotationDelta + +__all__ = ["TextDelta"] + + +class TextDelta(BaseModel): + annotations: Optional[List[AnnotationDelta]] = None + + value: Optional[str] = None + """The data that makes up the text.""" diff --git a/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_delta_block.py b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_delta_block.py new file mode 100644 index 0000000000000000000000000000000000000000..586116e0d65e30ea156c3aad36c0fdb03f79366c --- /dev/null +++ b/vllm/lib/python3.10/site-packages/openai/types/beta/threads/text_delta_block.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .text_delta import TextDelta + +__all__ = ["TextDeltaBlock"] + + +class TextDeltaBlock(BaseModel): + index: int + """The index of the content part in the message.""" + + type: Literal["text"] + """Always `text`.""" + + text: Optional[TextDelta] = None