byteplussdk-arkruntime 3.0.64__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- byteplussdk_arkruntime-3.0.64.dist-info/METADATA +36 -0
- byteplussdk_arkruntime-3.0.64.dist-info/RECORD +240 -0
- byteplussdk_arkruntime-3.0.64.dist-info/WHEEL +5 -0
- byteplussdk_arkruntime-3.0.64.dist-info/licenses/LICENSE.txt +203 -0
- byteplussdk_arkruntime-3.0.64.dist-info/top_level.txt +1 -0
- byteplussdkarkruntime/__init__.py +7 -0
- byteplussdkarkruntime/_base_client.py +1439 -0
- byteplussdkarkruntime/_client.py +570 -0
- byteplussdkarkruntime/_compat.py +245 -0
- byteplussdkarkruntime/_constants.py +43 -0
- byteplussdkarkruntime/_exceptions.py +202 -0
- byteplussdkarkruntime/_files.py +149 -0
- byteplussdkarkruntime/_legacy_response.py +451 -0
- byteplussdkarkruntime/_models.py +734 -0
- byteplussdkarkruntime/_qs.py +168 -0
- byteplussdkarkruntime/_request_options.py +117 -0
- byteplussdkarkruntime/_resource.py +47 -0
- byteplussdkarkruntime/_response.py +615 -0
- byteplussdkarkruntime/_streaming.py +470 -0
- byteplussdkarkruntime/_types.py +210 -0
- byteplussdkarkruntime/_utils/__init__.py +58 -0
- byteplussdkarkruntime/_utils/_key_agreement.py +207 -0
- byteplussdkarkruntime/_utils/_logs.py +24 -0
- byteplussdkarkruntime/_utils/_model_breaker.py +83 -0
- byteplussdkarkruntime/_utils/_streams.py +12 -0
- byteplussdkarkruntime/_utils/_transform.py +489 -0
- byteplussdkarkruntime/_utils/_typing.py +171 -0
- byteplussdkarkruntime/_utils/_utils.py +497 -0
- byteplussdkarkruntime/common/__init__.py +14 -0
- byteplussdkarkruntime/common/_parsing/__init__.py +22 -0
- byteplussdkarkruntime/common/_parsing/_completions.py +290 -0
- byteplussdkarkruntime/common/_parsing/_responses.py +189 -0
- byteplussdkarkruntime/common/_pydantic.py +192 -0
- byteplussdkarkruntime/common/_tools.py +67 -0
- byteplussdkarkruntime/common/streaming/__init__.py +12 -0
- byteplussdkarkruntime/common/streaming/_deltas.py +86 -0
- byteplussdkarkruntime/common/streaming/chat/__init__.py +33 -0
- byteplussdkarkruntime/common/streaming/chat/_completions.py +772 -0
- byteplussdkarkruntime/common/streaming/chat/_events.py +103 -0
- byteplussdkarkruntime/common/streaming/chat/_types.py +36 -0
- byteplussdkarkruntime/pagination.py +134 -0
- byteplussdkarkruntime/resources/__init__.py +48 -0
- byteplussdkarkruntime/resources/batch/__init__.py +3 -0
- byteplussdkarkruntime/resources/batch/_utils.py +155 -0
- byteplussdkarkruntime/resources/batch/batch.py +37 -0
- byteplussdkarkruntime/resources/batch/chat/__init__.py +3 -0
- byteplussdkarkruntime/resources/batch/chat/chat.py +19 -0
- byteplussdkarkruntime/resources/batch/chat/completions.py +329 -0
- byteplussdkarkruntime/resources/batch/embeddings.py +105 -0
- byteplussdkarkruntime/resources/batch/multimodal_embeddings.py +111 -0
- byteplussdkarkruntime/resources/batch_chat/__init__.py +3 -0
- byteplussdkarkruntime/resources/batch_chat/chat.py +21 -0
- byteplussdkarkruntime/resources/batch_chat/completions.py +328 -0
- byteplussdkarkruntime/resources/beta/__init__.py +12 -0
- byteplussdkarkruntime/resources/beta/beta.py +81 -0
- byteplussdkarkruntime/resources/beta/chat/__init__.py +21 -0
- byteplussdkarkruntime/resources/beta/chat/chat.py +31 -0
- byteplussdkarkruntime/resources/beta/chat/completions.py +454 -0
- byteplussdkarkruntime/resources/chat/__init__.py +3 -0
- byteplussdkarkruntime/resources/chat/chat.py +21 -0
- byteplussdkarkruntime/resources/chat/completions.py +258 -0
- byteplussdkarkruntime/resources/content_generation/__init__.py +6 -0
- byteplussdkarkruntime/resources/content_generation/content_generation.py +17 -0
- byteplussdkarkruntime/resources/content_generation/tasks.py +348 -0
- byteplussdkarkruntime/resources/context/__init__.py +3 -0
- byteplussdkarkruntime/resources/context/completions.py +221 -0
- byteplussdkarkruntime/resources/context/context.py +98 -0
- byteplussdkarkruntime/resources/embeddings.py +110 -0
- byteplussdkarkruntime/resources/encryption.py +215 -0
- byteplussdkarkruntime/resources/files.py +592 -0
- byteplussdkarkruntime/resources/images/__init__.py +6 -0
- byteplussdkarkruntime/resources/images/images.py +335 -0
- byteplussdkarkruntime/resources/multimodal_embeddings.py +113 -0
- byteplussdkarkruntime/resources/responses/__init__.py +16 -0
- byteplussdkarkruntime/resources/responses/input_items.py +248 -0
- byteplussdkarkruntime/resources/responses/responses.py +417 -0
- byteplussdkarkruntime/types/__init__.py +28 -0
- byteplussdkarkruntime/types/chat/__init__.py +78 -0
- byteplussdkarkruntime/types/chat/chat_completion.py +93 -0
- byteplussdkarkruntime/types/chat/chat_completion_assistant_message_param.py +61 -0
- byteplussdkarkruntime/types/chat/chat_completion_audio.py +22 -0
- byteplussdkarkruntime/types/chat/chat_completion_chunk.py +165 -0
- byteplussdkarkruntime/types/chat/chat_completion_content_part_image_param.py +20 -0
- byteplussdkarkruntime/types/chat/chat_completion_content_part_param.py +30 -0
- byteplussdkarkruntime/types/chat/chat_completion_content_part_text_param.py +13 -0
- byteplussdkarkruntime/types/chat/chat_completion_content_part_video_param.py +32 -0
- byteplussdkarkruntime/types/chat/chat_completion_function_call_option_param.py +10 -0
- byteplussdkarkruntime/types/chat/chat_completion_function_message_param.py +17 -0
- byteplussdkarkruntime/types/chat/chat_completion_message.py +56 -0
- byteplussdkarkruntime/types/chat/chat_completion_message_param.py +19 -0
- byteplussdkarkruntime/types/chat/chat_completion_message_tool_call.py +29 -0
- byteplussdkarkruntime/types/chat/chat_completion_message_tool_call_param.py +29 -0
- byteplussdkarkruntime/types/chat/chat_completion_named_tool_choice_param.py +17 -0
- byteplussdkarkruntime/types/chat/chat_completion_role.py +5 -0
- byteplussdkarkruntime/types/chat/chat_completion_stream_options_param.py +19 -0
- byteplussdkarkruntime/types/chat/chat_completion_system_message_param.py +34 -0
- byteplussdkarkruntime/types/chat/chat_completion_token_logprob.py +55 -0
- byteplussdkarkruntime/types/chat/chat_completion_tool_choice_option_param.py +12 -0
- byteplussdkarkruntime/types/chat/chat_completion_tool_message_param.py +37 -0
- byteplussdkarkruntime/types/chat/chat_completion_tool_param.py +14 -0
- byteplussdkarkruntime/types/chat/chat_completion_user_message_param.py +34 -0
- byteplussdkarkruntime/types/chat/completion_create_params.py +258 -0
- byteplussdkarkruntime/types/chat/parsed_chat_completion.py +52 -0
- byteplussdkarkruntime/types/chat/parsed_function_tool_call.py +34 -0
- byteplussdkarkruntime/types/completion_usage.py +33 -0
- byteplussdkarkruntime/types/content_generation/__init__.py +0 -0
- byteplussdkarkruntime/types/content_generation/content_generation_task.py +106 -0
- byteplussdkarkruntime/types/content_generation/content_generation_task_id.py +11 -0
- byteplussdkarkruntime/types/content_generation/create_task_content_param.py +72 -0
- byteplussdkarkruntime/types/content_generation/list_content_generation_tasks_response.py +24 -0
- byteplussdkarkruntime/types/context/__init__.py +8 -0
- byteplussdkarkruntime/types/context/context_chat_completion.py +33 -0
- byteplussdkarkruntime/types/context/context_chat_completion_chunk.py +41 -0
- byteplussdkarkruntime/types/context/context_create_params.py +37 -0
- byteplussdkarkruntime/types/context/create_context_response.py +25 -0
- byteplussdkarkruntime/types/context/truncation_strategy.py +13 -0
- byteplussdkarkruntime/types/create_embedding_response.py +36 -0
- byteplussdkarkruntime/types/embedding.py +21 -0
- byteplussdkarkruntime/types/file_create_params.py +49 -0
- byteplussdkarkruntime/types/file_deleted.py +24 -0
- byteplussdkarkruntime/types/file_list_params.py +43 -0
- byteplussdkarkruntime/types/file_object.py +69 -0
- byteplussdkarkruntime/types/file_purpose.py +16 -0
- byteplussdkarkruntime/types/images/__init__.py +3 -0
- byteplussdkarkruntime/types/images/image_gen_completed_event.py +59 -0
- byteplussdkarkruntime/types/images/image_gen_generating_event.py +53 -0
- byteplussdkarkruntime/types/images/image_gen_stream_event.py +24 -0
- byteplussdkarkruntime/types/images/images.py +99 -0
- byteplussdkarkruntime/types/multimodal_embedding/__init__.py +15 -0
- byteplussdkarkruntime/types/multimodal_embedding/embedding_content_part_image_param.py +17 -0
- byteplussdkarkruntime/types/multimodal_embedding/embedding_content_part_text_param.py +13 -0
- byteplussdkarkruntime/types/multimodal_embedding/embedding_data.py +15 -0
- byteplussdkarkruntime/types/multimodal_embedding/embedding_input.py +12 -0
- byteplussdkarkruntime/types/multimodal_embedding/embedding_response.py +29 -0
- byteplussdkarkruntime/types/multimodal_embedding/embedding_usage.py +23 -0
- byteplussdkarkruntime/types/responses/__init__.py +133 -0
- byteplussdkarkruntime/types/responses/easy_input_message.py +36 -0
- byteplussdkarkruntime/types/responses/easy_input_message_param.py +37 -0
- byteplussdkarkruntime/types/responses/function_tool.py +35 -0
- byteplussdkarkruntime/types/responses/function_tool_param.py +35 -0
- byteplussdkarkruntime/types/responses/input_item_list_params.py +47 -0
- byteplussdkarkruntime/types/responses/mcp_input_item_param.py +109 -0
- byteplussdkarkruntime/types/responses/mcp_tool.py +80 -0
- byteplussdkarkruntime/types/responses/mcp_tool_param.py +78 -0
- byteplussdkarkruntime/types/responses/response.py +152 -0
- byteplussdkarkruntime/types/responses/response_annotation_added_event.py +36 -0
- byteplussdkarkruntime/types/responses/response_caching.py +25 -0
- byteplussdkarkruntime/types/responses/response_caching_param.py +22 -0
- byteplussdkarkruntime/types/responses/response_completed_event.py +26 -0
- byteplussdkarkruntime/types/responses/response_content_part_added_event.py +39 -0
- byteplussdkarkruntime/types/responses/response_content_part_done_event.py +39 -0
- byteplussdkarkruntime/types/responses/response_create_params.py +26 -0
- byteplussdkarkruntime/types/responses/response_created_event.py +26 -0
- byteplussdkarkruntime/types/responses/response_error.py +25 -0
- byteplussdkarkruntime/types/responses/response_error_event.py +32 -0
- byteplussdkarkruntime/types/responses/response_failed_event.py +26 -0
- byteplussdkarkruntime/types/responses/response_format_text_config.py +25 -0
- byteplussdkarkruntime/types/responses/response_format_text_config_param.py +25 -0
- byteplussdkarkruntime/types/responses/response_function_call_arguments_delta_event.py +33 -0
- byteplussdkarkruntime/types/responses/response_function_call_arguments_done_event.py +30 -0
- byteplussdkarkruntime/types/responses/response_function_tool_call.py +42 -0
- byteplussdkarkruntime/types/responses/response_function_tool_call_item.py +20 -0
- byteplussdkarkruntime/types/responses/response_function_tool_call_output_item.py +39 -0
- byteplussdkarkruntime/types/responses/response_function_tool_call_param.py +31 -0
- byteplussdkarkruntime/types/responses/response_in_progress_event.py +26 -0
- byteplussdkarkruntime/types/responses/response_includable.py +19 -0
- byteplussdkarkruntime/types/responses/response_incomplete_details.py +30 -0
- byteplussdkarkruntime/types/responses/response_incomplete_event.py +26 -0
- byteplussdkarkruntime/types/responses/response_input_content.py +24 -0
- byteplussdkarkruntime/types/responses/response_input_content_param.py +23 -0
- byteplussdkarkruntime/types/responses/response_input_image.py +38 -0
- byteplussdkarkruntime/types/responses/response_input_image_param.py +42 -0
- byteplussdkarkruntime/types/responses/response_input_image_pixel_limit_param.py +29 -0
- byteplussdkarkruntime/types/responses/response_input_message_content_list.py +20 -0
- byteplussdkarkruntime/types/responses/response_input_message_content_list_param.py +26 -0
- byteplussdkarkruntime/types/responses/response_input_message_item.py +43 -0
- byteplussdkarkruntime/types/responses/response_input_param.py +51 -0
- byteplussdkarkruntime/types/responses/response_input_text.py +25 -0
- byteplussdkarkruntime/types/responses/response_input_text_param.py +25 -0
- byteplussdkarkruntime/types/responses/response_input_video_param.py +34 -0
- byteplussdkarkruntime/types/responses/response_item.py +40 -0
- byteplussdkarkruntime/types/responses/response_item_list.py +36 -0
- byteplussdkarkruntime/types/responses/response_mcp_call_arguments_delta_event.py +37 -0
- byteplussdkarkruntime/types/responses/response_mcp_call_arguments_done_event.py +34 -0
- byteplussdkarkruntime/types/responses/response_mcp_call_completed_event.py +31 -0
- byteplussdkarkruntime/types/responses/response_mcp_call_failed_event.py +31 -0
- byteplussdkarkruntime/types/responses/response_mcp_call_in_progress_event.py +31 -0
- byteplussdkarkruntime/types/responses/response_mcp_item.py +110 -0
- byteplussdkarkruntime/types/responses/response_mcp_list_tools_completed_event.py +31 -0
- byteplussdkarkruntime/types/responses/response_mcp_list_tools_failed_event.py +31 -0
- byteplussdkarkruntime/types/responses/response_mcp_list_tools_in_progress_event.py +31 -0
- byteplussdkarkruntime/types/responses/response_output_item.py +36 -0
- byteplussdkarkruntime/types/responses/response_output_item_added_event.py +29 -0
- byteplussdkarkruntime/types/responses/response_output_item_done_event.py +29 -0
- byteplussdkarkruntime/types/responses/response_output_message.py +43 -0
- byteplussdkarkruntime/types/responses/response_output_text.py +61 -0
- byteplussdkarkruntime/types/responses/response_output_text_param.py +77 -0
- byteplussdkarkruntime/types/responses/response_reasoning_item.py +46 -0
- byteplussdkarkruntime/types/responses/response_reasoning_item_param.py +37 -0
- byteplussdkarkruntime/types/responses/response_reasoning_summary_part_added_event.py +42 -0
- byteplussdkarkruntime/types/responses/response_reasoning_summary_part_done_event.py +42 -0
- byteplussdkarkruntime/types/responses/response_reasoning_summary_text_delta_event.py +34 -0
- byteplussdkarkruntime/types/responses/response_reasoning_summary_text_done_event.py +34 -0
- byteplussdkarkruntime/types/responses/response_status.py +17 -0
- byteplussdkarkruntime/types/responses/response_stream_event.py +93 -0
- byteplussdkarkruntime/types/responses/response_text_config.py +28 -0
- byteplussdkarkruntime/types/responses/response_text_config_param.py +31 -0
- byteplussdkarkruntime/types/responses/response_text_delta_event.py +34 -0
- byteplussdkarkruntime/types/responses/response_text_done_event.py +34 -0
- byteplussdkarkruntime/types/responses/response_tool_usage.py +32 -0
- byteplussdkarkruntime/types/responses/response_usage.py +54 -0
- byteplussdkarkruntime/types/responses/response_web_search_call_completed_event.py +29 -0
- byteplussdkarkruntime/types/responses/response_web_search_call_in_progress_event.py +29 -0
- byteplussdkarkruntime/types/responses/response_web_search_call_searching_event.py +29 -0
- byteplussdkarkruntime/types/responses/response_web_search_item.py +43 -0
- byteplussdkarkruntime/types/responses/tool.py +25 -0
- byteplussdkarkruntime/types/responses/tool_choice_function.py +25 -0
- byteplussdkarkruntime/types/responses/tool_choice_function_param.py +25 -0
- byteplussdkarkruntime/types/responses/tool_choice_mcp_param.py +29 -0
- byteplussdkarkruntime/types/responses/tool_choice_options.py +17 -0
- byteplussdkarkruntime/types/responses/tool_param.py +24 -0
- byteplussdkarkruntime/types/responses/web_search_tool.py +49 -0
- byteplussdkarkruntime/types/responses/web_search_tool_param.py +46 -0
- byteplussdkarkruntime/types/shared/__init__.py +21 -0
- byteplussdkarkruntime/types/shared/reasoning.py +10 -0
- byteplussdkarkruntime/types/shared/reasoning_effort.py +16 -0
- byteplussdkarkruntime/types/shared/response_format_json_object.py +22 -0
- byteplussdkarkruntime/types/shared/response_format_json_schema.py +56 -0
- byteplussdkarkruntime/types/shared/response_format_text.py +22 -0
- byteplussdkarkruntime/types/shared/thinking.py +25 -0
- byteplussdkarkruntime/types/shared_params/__init__.py +13 -0
- byteplussdkarkruntime/types/shared_params/function_definition.py +34 -0
- byteplussdkarkruntime/types/shared_params/function_parameters.py +9 -0
- byteplussdkarkruntime/types/shared_params/metadata.py +20 -0
- byteplussdkarkruntime/types/shared_params/reasoning.py +12 -0
- byteplussdkarkruntime/types/shared_params/reasoning_effort.py +8 -0
- byteplussdkarkruntime/types/shared_params/response_format_json_object.py +22 -0
- byteplussdkarkruntime/types/shared_params/response_format_json_schema.py +54 -0
- byteplussdkarkruntime/types/shared_params/response_format_text.py +22 -0
- byteplussdkarkruntime/types/shared_params/thinking.py +22 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
__all__ = ["ContentGenerationTask"]
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from byteplussdkarkruntime._models import BaseModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Usage(BaseModel):
|
|
9
|
+
completion_tokens: int
|
|
10
|
+
"""The number of tokens used for completion."""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Content(BaseModel):
|
|
14
|
+
video_url: str
|
|
15
|
+
"""The URL of the generated video, if any."""
|
|
16
|
+
|
|
17
|
+
last_frame_url: str
|
|
18
|
+
"""The URL of the last frame of the generated video, if any."""
|
|
19
|
+
|
|
20
|
+
file_url: str
|
|
21
|
+
"""The URL of the generated file, if any."""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ContentGenerationError(BaseModel):
|
|
25
|
+
message: str
|
|
26
|
+
"""The reason for task failure"""
|
|
27
|
+
|
|
28
|
+
code: str
|
|
29
|
+
"""The error code for task failure"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class ContentGenerationTask(BaseModel):
|
|
33
|
+
id: str
|
|
34
|
+
"""A unique identifier for the task."""
|
|
35
|
+
|
|
36
|
+
model: str
|
|
37
|
+
"""The model used for the task."""
|
|
38
|
+
|
|
39
|
+
safety_identifier: Optional[str] = None
|
|
40
|
+
"""The safety identifier associated with the task."""
|
|
41
|
+
|
|
42
|
+
status: str
|
|
43
|
+
"""The status of the task (running, failed, queued, succeeded, cancelled)."""
|
|
44
|
+
|
|
45
|
+
error: ContentGenerationError
|
|
46
|
+
"""The error body, if applicable."""
|
|
47
|
+
|
|
48
|
+
content: Content
|
|
49
|
+
"""The content generated by the task."""
|
|
50
|
+
|
|
51
|
+
usage: Usage
|
|
52
|
+
"""The usage information for the task."""
|
|
53
|
+
|
|
54
|
+
subdivisionlevel: str
|
|
55
|
+
"""The subdivision level of the task."""
|
|
56
|
+
|
|
57
|
+
fileformat: str
|
|
58
|
+
"""The file format of the generated content."""
|
|
59
|
+
|
|
60
|
+
frames: int
|
|
61
|
+
"""The number of frames in the generated content."""
|
|
62
|
+
|
|
63
|
+
framespersecond: int
|
|
64
|
+
"""The number of frames per second in the generated content."""
|
|
65
|
+
|
|
66
|
+
created_at: int
|
|
67
|
+
"""The Unix timestamp when the task was created."""
|
|
68
|
+
|
|
69
|
+
updated_at: int
|
|
70
|
+
"""The Unix timestamp when the task was last updated."""
|
|
71
|
+
|
|
72
|
+
seed: int
|
|
73
|
+
"""The seed used in the model."""
|
|
74
|
+
|
|
75
|
+
revised_prompt: str
|
|
76
|
+
"""The revised prompt the model uses to generate content"""
|
|
77
|
+
|
|
78
|
+
service_tier: str
|
|
79
|
+
"""The service tier under which the task runs."""
|
|
80
|
+
|
|
81
|
+
execution_expires_after: int
|
|
82
|
+
"""Seconds after which execution expires for the task."""
|
|
83
|
+
|
|
84
|
+
priority: int
|
|
85
|
+
"""The priority used to run the task (optional)."""
|
|
86
|
+
|
|
87
|
+
generate_audio: bool
|
|
88
|
+
"""Whether to generate audio."""
|
|
89
|
+
|
|
90
|
+
duration: int
|
|
91
|
+
"""The duration of the generated content in seconds."""
|
|
92
|
+
|
|
93
|
+
ratio: str
|
|
94
|
+
"""The aspect ratio of the generated content."""
|
|
95
|
+
|
|
96
|
+
resolution: str
|
|
97
|
+
"""The resolution of the generated content."""
|
|
98
|
+
|
|
99
|
+
draft: bool
|
|
100
|
+
"""Whether to generate a draft version of the content."""
|
|
101
|
+
|
|
102
|
+
draft_task_id: str
|
|
103
|
+
"""The ID of the draft task, if applicable."""
|
|
104
|
+
|
|
105
|
+
output_format: Optional[str] = None
|
|
106
|
+
"""The output format of the generated content."""
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
from byteplussdkarkruntime._models import BaseModel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ContentGenerationTaskID(BaseModel):
|
|
7
|
+
id: str
|
|
8
|
+
"""A unique identifier for the task."""
|
|
9
|
+
|
|
10
|
+
safety_identifier: Optional[str] = None
|
|
11
|
+
"""The safety identifier associated with the task."""
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"CreateTaskContentTextParam",
|
|
9
|
+
"CreateTaskContentImageDataParam",
|
|
10
|
+
"CreateTaskContentAudioDataParam",
|
|
11
|
+
"CreateTaskContentVideoDataParam",
|
|
12
|
+
"CreateTaskContentImageParam",
|
|
13
|
+
"CreateTaskContentAudioParam",
|
|
14
|
+
"CreateTaskContentVideoParam",
|
|
15
|
+
"CreateTaskContentParam",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CreateTaskContentTextParam(TypedDict):
|
|
20
|
+
type: Literal["text"]
|
|
21
|
+
text: str
|
|
22
|
+
"""Text prompt describing the video generation job."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class CreateTaskContentImageDataParam(TypedDict):
|
|
26
|
+
url: str
|
|
27
|
+
"""URL of the image to be used for content generation."""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class CreateTaskContentAudioDataParam(TypedDict):
|
|
31
|
+
url: str
|
|
32
|
+
"""URL of the audio to be used for content generation."""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class CreateTaskContentVideoDataParam(TypedDict):
|
|
36
|
+
url: str
|
|
37
|
+
"""URL of the video to be used for content generation."""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class CreateTaskContentImageParam(TypedDict):
|
|
41
|
+
type: Literal["image_url"]
|
|
42
|
+
image_url: CreateTaskContentImageDataParam
|
|
43
|
+
role: str
|
|
44
|
+
"""Image data object containing image URL."""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class CreateTaskContentAudioParam(TypedDict):
|
|
48
|
+
type: Literal["audio_url"]
|
|
49
|
+
audio_url: CreateTaskContentAudioDataParam
|
|
50
|
+
role: str
|
|
51
|
+
"""Audio data object containing audio URL."""
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class CreateTaskContentVideoParam(TypedDict):
|
|
55
|
+
type: Literal["video_url"]
|
|
56
|
+
video_url: CreateTaskContentVideoDataParam
|
|
57
|
+
role: str
|
|
58
|
+
"""Video data object containing video URL."""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class CreateTaskContentDraftTaskParam(TypedDict):
|
|
62
|
+
type: Literal["draft_task"]
|
|
63
|
+
draft_task: CreateTaskContentDraftTaskDataParam
|
|
64
|
+
"""ID of the draft task to be used for content generation."""
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class CreateTaskContentDraftTaskDataParam(TypedDict):
|
|
68
|
+
id: str
|
|
69
|
+
"""ID of the draft task to be used for content generation."""
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
CreateTaskContentParam = Union[CreateTaskContentTextParam, CreateTaskContentImageParam, CreateTaskContentAudioParam, CreateTaskContentVideoParam, CreateTaskContentDraftTaskParam]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
|
|
3
|
+
from .content_generation_task import ContentGenerationTask
|
|
4
|
+
from byteplussdkarkruntime._models import BaseModel
|
|
5
|
+
|
|
6
|
+
__all__ = ["ListContentGenerationTasksResponse"]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Content(BaseModel):
|
|
10
|
+
video_url: str
|
|
11
|
+
"""URL of the generated video."""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Usage(BaseModel):
|
|
15
|
+
completion_tokens: int
|
|
16
|
+
"""Number of tokens used during the content generation process."""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ListContentGenerationTasksResponse(BaseModel):
|
|
20
|
+
total: int
|
|
21
|
+
"""Total number of filtered content generation tasks."""
|
|
22
|
+
|
|
23
|
+
items: List[ContentGenerationTask]
|
|
24
|
+
"""List of content generation task items."""
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .context_chat_completion_chunk import ContextChatCompletionChunk
|
|
6
|
+
from .context_chat_completion import ContextChatCompletion
|
|
7
|
+
from .create_context_response import CreateContextResponse
|
|
8
|
+
from .context_create_params import TruncationStrategy, TTLTypes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from typing import List, Optional
|
|
2
|
+
from typing_extensions import Literal
|
|
3
|
+
|
|
4
|
+
from ..._models import BaseModel
|
|
5
|
+
from ..chat.chat_completion import Choice
|
|
6
|
+
from ..completion_usage import CompletionUsage
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"ContextChatCompletion",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ContextChatCompletion(BaseModel):
|
|
14
|
+
id: str
|
|
15
|
+
"""A unique identifier for the chat completion."""
|
|
16
|
+
|
|
17
|
+
choices: List[Choice]
|
|
18
|
+
"""A list of chat completion choices.
|
|
19
|
+
|
|
20
|
+
Can be more than one if `n` is greater than 1.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
created: int
|
|
24
|
+
"""The Unix timestamp (in seconds) of when the chat completion was created."""
|
|
25
|
+
|
|
26
|
+
model: str
|
|
27
|
+
"""The model used for the chat completion."""
|
|
28
|
+
|
|
29
|
+
object: Literal["chat.completion"]
|
|
30
|
+
"""The object type, which is always `chat.completion`."""
|
|
31
|
+
|
|
32
|
+
usage: Optional[CompletionUsage] = None
|
|
33
|
+
"""Usage statistics for the completion request."""
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from typing import List, Optional
|
|
2
|
+
from typing_extensions import Literal
|
|
3
|
+
|
|
4
|
+
from ..._models import BaseModel
|
|
5
|
+
from ..chat.chat_completion_chunk import Choice
|
|
6
|
+
from ..completion_usage import CompletionUsage
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"ContextChatCompletionChunk",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ContextChatCompletionChunk(BaseModel):
|
|
14
|
+
id: str
|
|
15
|
+
"""A unique identifier for the chat completion. Each chunk has the same ID."""
|
|
16
|
+
|
|
17
|
+
choices: List[Choice]
|
|
18
|
+
"""A list of chat completion choices.
|
|
19
|
+
|
|
20
|
+
Can be more than one if `n` is greater than 1.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
created: int
|
|
24
|
+
"""The Unix timestamp (in seconds) of when the chat completion was created.
|
|
25
|
+
|
|
26
|
+
Each chunk has the same timestamp.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
model: str
|
|
30
|
+
"""The model to generate the completion."""
|
|
31
|
+
|
|
32
|
+
object: Literal["chat.completion.chunk"]
|
|
33
|
+
"""The object type, which is always `chat.completion.chunk`."""
|
|
34
|
+
|
|
35
|
+
usage: Optional[CompletionUsage] = None
|
|
36
|
+
"""
|
|
37
|
+
An optional field that will only be present when you set
|
|
38
|
+
`stream_options: {"include_usage": true}` in your request. When present, it
|
|
39
|
+
contains a null value except for the last chunk which contains the token usage
|
|
40
|
+
statistics for the entire request.
|
|
41
|
+
"""
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
from typing import Union, Optional
|
|
5
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"TruncationStrategy",
|
|
9
|
+
"TTLTypes",
|
|
10
|
+
"to_optional_ttl"
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class TruncationStrategy(TypedDict, total=False):
|
|
15
|
+
type: Required[Literal["last_history_tokens", "rolling_tokens"]]
|
|
16
|
+
"""The truncation strategy to use for the context. The default is last_history_tokens."""
|
|
17
|
+
last_history_tokens: Optional[int]
|
|
18
|
+
"""The number of most recent tokens from the context when constructing the chat completion."""
|
|
19
|
+
rolling_tokens: Optional[bool]
|
|
20
|
+
"""If true, the context will not rolling when reach the max tokens limit."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
TTLTypes = Union[int, datetime.timedelta]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def to_optional_ttl(ttl: TTLTypes | None) -> int | None:
|
|
27
|
+
if ttl is None:
|
|
28
|
+
return None
|
|
29
|
+
elif isinstance(ttl, datetime.timedelta):
|
|
30
|
+
return int(ttl.total_seconds())
|
|
31
|
+
elif isinstance(ttl, int):
|
|
32
|
+
return ttl
|
|
33
|
+
else:
|
|
34
|
+
raise TypeError(
|
|
35
|
+
f"Could not convert input to `ttl` \n'" f" type: {type(ttl)}\n",
|
|
36
|
+
ttl,
|
|
37
|
+
)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from ..._models import BaseModel
|
|
2
|
+
from ..completion_usage import CompletionUsage
|
|
3
|
+
from .truncation_strategy import TruncationStrategy
|
|
4
|
+
|
|
5
|
+
__all__ = ["CreateContextResponse"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateContextResponse(BaseModel):
|
|
9
|
+
id: str
|
|
10
|
+
"""A unique identifier for the context."""
|
|
11
|
+
model: str
|
|
12
|
+
"""The endpoint used for the context."""
|
|
13
|
+
mode: str
|
|
14
|
+
"""The mode used for the context."""
|
|
15
|
+
ttl: int
|
|
16
|
+
"""The time to live (TTL) for the context in seconds."""
|
|
17
|
+
truncation_strategy: TruncationStrategy
|
|
18
|
+
"""
|
|
19
|
+
Controls for how a context will be truncated prior to the run.
|
|
20
|
+
Use this to control the context window for the chat completion.
|
|
21
|
+
"""
|
|
22
|
+
usage: CompletionUsage
|
|
23
|
+
"""
|
|
24
|
+
usage for context create.
|
|
25
|
+
"""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
from typing_extensions import Literal
|
|
3
|
+
|
|
4
|
+
from ..._models import BaseModel
|
|
5
|
+
|
|
6
|
+
__all__ = ["TruncationStrategy"]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class TruncationStrategy(BaseModel):
|
|
10
|
+
type: Literal["last_history_tokens"]
|
|
11
|
+
"""The truncation strategy to use for the context. The default is last_history_tokens."""
|
|
12
|
+
last_history_tokens: Optional[int] = None
|
|
13
|
+
"""The number of most recent tokens from the context when constructing the chat completion."""
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
|
|
3
|
+
from typing_extensions import Literal
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
from .embedding import Embedding
|
|
7
|
+
|
|
8
|
+
__all__ = ["CreateEmbeddingResponse", "Usage"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Usage(BaseModel):
|
|
12
|
+
prompt_tokens: int
|
|
13
|
+
"""The number of tokens used by the prompt."""
|
|
14
|
+
|
|
15
|
+
total_tokens: int
|
|
16
|
+
"""The total number of tokens used by the request."""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CreateEmbeddingResponse(BaseModel):
|
|
20
|
+
id: str
|
|
21
|
+
"""A unique identifier for the embeddings."""
|
|
22
|
+
|
|
23
|
+
created: int
|
|
24
|
+
"""The Unix timestamp (in seconds) of when the embeddings was created."""
|
|
25
|
+
|
|
26
|
+
data: List[Embedding]
|
|
27
|
+
"""The list of embeddings generated by the model."""
|
|
28
|
+
|
|
29
|
+
model: str
|
|
30
|
+
"""The name of the model used to generate the embedding."""
|
|
31
|
+
|
|
32
|
+
object: Literal["list"]
|
|
33
|
+
"""The object type, which is always "list"."""
|
|
34
|
+
|
|
35
|
+
usage: Usage
|
|
36
|
+
"""The usage information for the request."""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
|
|
3
|
+
from typing_extensions import Literal
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["Embedding"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Embedding(BaseModel):
|
|
11
|
+
embedding: List[float]
|
|
12
|
+
"""The embedding vector, which is a list of floats.
|
|
13
|
+
|
|
14
|
+
The length of vector depends on the model as listed in the
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
index: int
|
|
18
|
+
"""The index of the embedding in the list of embeddings."""
|
|
19
|
+
|
|
20
|
+
object: Literal["embedding"]
|
|
21
|
+
"""The object type, which is always "embedding"."""
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
import datetime
|
|
14
|
+
from typing_extensions import Required, TypedDict
|
|
15
|
+
from typing import Optional
|
|
16
|
+
from .._types import FileTypes
|
|
17
|
+
from .file_purpose import FilePurpose
|
|
18
|
+
|
|
19
|
+
__all__ = ["FileCreateParams", "PreprocessConfigs"]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class FileCreateParams(TypedDict, total=False):
|
|
23
|
+
file: Required[FileTypes]
|
|
24
|
+
"""The File object (not file name) to be uploaded."""
|
|
25
|
+
|
|
26
|
+
purpose: Required[FilePurpose]
|
|
27
|
+
"""The intended purpose of the uploaded file.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
expire_at: datetime.datetime
|
|
31
|
+
"""The expiration timestamp for the file.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
preprocess_configs: Optional[PreprocessConfigs]
|
|
35
|
+
"""The preprocess configs of the file."""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class Video(TypedDict, total=False):
|
|
39
|
+
"""The video configs of the file."""
|
|
40
|
+
|
|
41
|
+
fps: float
|
|
42
|
+
"""The fps of the video."""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class PreprocessConfigs(TypedDict, total=False):
|
|
46
|
+
"""The preprocess configs of the file."""
|
|
47
|
+
|
|
48
|
+
video: Optional[Video]
|
|
49
|
+
"""The video configs of the file."""
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from typing_extensions import Literal
|
|
13
|
+
|
|
14
|
+
from .._models import BaseModel
|
|
15
|
+
|
|
16
|
+
__all__ = ["FileDeleted"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class FileDeleted(BaseModel):
|
|
20
|
+
id: str
|
|
21
|
+
|
|
22
|
+
deleted: bool
|
|
23
|
+
|
|
24
|
+
object: Literal["file"]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from .file_purpose import FilePurpose as FilePurpose
|
|
15
|
+
from typing_extensions import Literal, TypedDict
|
|
16
|
+
|
|
17
|
+
__all__ = ["FileListParams"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class FileListParams(TypedDict, total=False):
|
|
21
|
+
after: str
|
|
22
|
+
"""A cursor for use in pagination.
|
|
23
|
+
|
|
24
|
+
`after` is an object ID that defines your place in the list. For instance, if
|
|
25
|
+
you make a list request and receive 100 objects, ending with obj_foo, your
|
|
26
|
+
subsequent call can include after=obj_foo in order to fetch the next page of the
|
|
27
|
+
list.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
limit: int
|
|
31
|
+
"""A limit on the number of objects to be returned.
|
|
32
|
+
|
|
33
|
+
Limit can range between 1 and 1000, and the default is 100
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
order: Literal["asc", "desc"]
|
|
37
|
+
"""Sort order by the `created_at` timestamp of the objects.
|
|
38
|
+
|
|
39
|
+
`asc` for ascending order and `desc` for descending order.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
purpose: FilePurpose
|
|
43
|
+
"""Only return files with the given purpose."""
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from typing import Optional
|
|
13
|
+
from typing_extensions import Literal
|
|
14
|
+
|
|
15
|
+
from .._models import BaseModel
|
|
16
|
+
|
|
17
|
+
__all__ = ["FileObject"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class Error(BaseModel):
|
|
21
|
+
code: str
|
|
22
|
+
"""The error code."""
|
|
23
|
+
|
|
24
|
+
message: str
|
|
25
|
+
"""The error message."""
|
|
26
|
+
|
|
27
|
+
param: Optional[str] = None
|
|
28
|
+
"""The parameter that was invalid, if any."""
|
|
29
|
+
|
|
30
|
+
type: Optional[str] = None
|
|
31
|
+
"""The error type."""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class FileObject(BaseModel):
|
|
35
|
+
id: str
|
|
36
|
+
"""The file identifier, which can be referenced in the API endpoints."""
|
|
37
|
+
|
|
38
|
+
bytes: int
|
|
39
|
+
"""The size of the file, in bytes."""
|
|
40
|
+
|
|
41
|
+
created_at: int
|
|
42
|
+
"""The Unix timestamp (in seconds) for when the file was created."""
|
|
43
|
+
|
|
44
|
+
expire_at: int
|
|
45
|
+
"""The Unix timestamp (in seconds) for when the file will expire."""
|
|
46
|
+
|
|
47
|
+
filename: str
|
|
48
|
+
"""The name of the file."""
|
|
49
|
+
|
|
50
|
+
object: Literal["file"]
|
|
51
|
+
"""The object type, which is always `file`."""
|
|
52
|
+
|
|
53
|
+
purpose: Literal["user_data",]
|
|
54
|
+
"""The intended purpose of the file.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
status: Literal["processing", "active", "failed"]
|
|
58
|
+
"""The current status of the file, which can be either `processing`, `active`, or
|
|
59
|
+
`failed`.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
error: Optional[Error] = None
|
|
63
|
+
"""The error information, if status=`failed`."""
|
|
64
|
+
|
|
65
|
+
mime_type: Optional[str] = None
|
|
66
|
+
"""The MIME type of the file."""
|
|
67
|
+
|
|
68
|
+
preprocess_configs: Optional[dict] = None
|
|
69
|
+
"""The preprocess configs of the file."""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from typing_extensions import Literal, TypeAlias
|
|
13
|
+
|
|
14
|
+
__all__ = ["FilePurpose"]
|
|
15
|
+
|
|
16
|
+
FilePurpose: TypeAlias = Literal["user_data"]
|