sample_id
stringlengths
21
196
text
stringlengths
105
936k
metadata
dict
category
stringclasses
6 values
openai/openai-python:src/openai/types/responses/response_custom_tool_call_output.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo from ..._models import BaseModel from .response_input_file import ResponseInputFile from .respon...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_custom_tool_call_output.py", "license": "Apache License 2.0", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_custom_tool_call_output_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union, Iterable from typing_extensions import Literal, Required, TypeAlias, TypedDict from .response_input_file_param import ResponseInputFileParam from .response_input_text_par...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_custom_tool_call_output_param.py", "license": "Apache License 2.0", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_custom_tool_call_param.py
# 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__ = ["ResponseCustomToolCallParam"] class ResponseCustomToolCallParam(TypedDict, total=False): """A call to a custom tool cre...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_custom_tool_call_param.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/tool_choice_allowed.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, List from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ToolChoiceAllowed"] class ToolChoiceAllowed(BaseModel): """Constrains the tools available to the model to a pre-...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/tool_choice_allowed.py", "license": "Apache License 2.0", "lines": 26, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/tool_choice_allowed_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Dict, Iterable from typing_extensions import Literal, Required, TypedDict __all__ = ["ToolChoiceAllowedParam"] class ToolChoiceAllowedParam(TypedDict, total=False): """Con...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/tool_choice_allowed_param.py", "license": "Apache License 2.0", "lines": 26, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/tool_choice_custom.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ToolChoiceCustom"] class ToolChoiceCustom(BaseModel): """Use this option to force the model to call a specific custom tool.""" name: str ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/tool_choice_custom.py", "license": "Apache License 2.0", "lines": 10, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/tool_choice_custom_param.py
# 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__ = ["ToolChoiceCustomParam"] class ToolChoiceCustomParam(TypedDict, total=False): """Use this option to force the model to c...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/tool_choice_custom_param.py", "license": "Apache License 2.0", "lines": 10, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/shared/custom_tool_input_format.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo from ..._models import BaseModel __all__ = ["CustomToolInputFormat", "Text", "Grammar"] class Text(BaseModel)...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/shared/custom_tool_input_format.py", "license": "Apache License 2.0", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/shared/response_format_text_grammar.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseFormatTextGrammar"] class ResponseFormatTextGrammar(BaseModel): """ A custom grammar for the model to follow when generating text....
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/shared/response_format_text_grammar.py", "license": "Apache License 2.0", "lines": 13, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/shared/response_format_text_python.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseFormatTextPython"] class ResponseFormatTextPython(BaseModel): """Configure the model to generate valid Python code. See the [...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/shared/response_format_text_python.py", "license": "Apache License 2.0", "lines": 11, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/shared_params/custom_tool_input_format.py
# 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 Literal, Required, TypeAlias, TypedDict __all__ = ["CustomToolInputFormat", "Text", "Grammar"] class Text(TypedDict, total=False): """U...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/shared_params/custom_tool_input_format.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_reasoning_text_delta_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseReasoningTextDeltaEvent"] class ResponseReasoningTextDeltaEvent(BaseModel): """Emitted when a delta is added to a reasoning text.""" ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_reasoning_text_delta_event.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_reasoning_text_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseReasoningTextDoneEvent"] class ResponseReasoningTextDoneEvent(BaseModel): """Emitted when a reasoning text is completed.""" conte...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_reasoning_text_done_event.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/chat/chat_completion_content_part_image.py
# 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__ = ["ChatCompletionContentPartImage", "ImageURL"] class ImageURL(BaseModel): url: str """Either a URL of the image ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_content_part_image.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/chat/chat_completion_content_part_text.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ChatCompletionContentPartText"] class ChatCompletionContentPartText(BaseModel): """ Learn about [text inputs](https://platform.openai.com/...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_content_part_text.py", "license": "Apache License 2.0", "lines": 12, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:examples/image_stream.py
#!/usr/bin/env python import base64 from pathlib import Path from openai import OpenAI client = OpenAI() def main() -> None: """Example of OpenAI image streaming with partial images.""" stream = client.images.generate( model="gpt-image-1", prompt="A cute baby sea otter", n=1, ...
{ "repo_id": "openai/openai-python", "file_path": "examples/image_stream.py", "license": "Apache License 2.0", "lines": 41, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/image_edit_completed_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from .._models import BaseModel __all__ = ["ImageEditCompletedEvent", "Usage", "UsageInputTokensDetails"] class UsageInputTokensDetails(BaseModel): """The input tokens detailed informatio...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/image_edit_completed_event.py", "license": "Apache License 2.0", "lines": 43, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/image_edit_partial_image_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from .._models import BaseModel __all__ = ["ImageEditPartialImageEvent"] class ImageEditPartialImageEvent(BaseModel): """Emitted when a partial image is available during image editing str...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/image_edit_partial_image_event.py", "license": "Apache License 2.0", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/image_edit_stream_event.py
# 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 .image_edit_completed_event import ImageEditCompletedEvent from .image_edit_partial_image_event import ImageEditParti...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/image_edit_stream_event.py", "license": "Apache License 2.0", "lines": 10, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/image_gen_completed_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from .._models import BaseModel __all__ = ["ImageGenCompletedEvent", "Usage", "UsageInputTokensDetails"] class UsageInputTokensDetails(BaseModel): """The input tokens detailed information...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/image_gen_completed_event.py", "license": "Apache License 2.0", "lines": 43, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/image_gen_partial_image_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from .._models import BaseModel __all__ = ["ImageGenPartialImageEvent"] class ImageGenPartialImageEvent(BaseModel): """Emitted when a partial image is available during image generation st...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/image_gen_partial_image_event.py", "license": "Apache License 2.0", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/image_gen_stream_event.py
# 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 .image_gen_completed_event import ImageGenCompletedEvent from .image_gen_partial_image_event import ImageGenPartialIm...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/image_gen_stream_event.py", "license": "Apache License 2.0", "lines": 10, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/cli/_api/fine_tuning/jobs.py
from __future__ import annotations import json from typing import TYPE_CHECKING from argparse import ArgumentParser from ..._utils import get_client, print_model from ...._types import Omittable, omit from ...._utils import is_given from ..._models import BaseModel from ....pagination import SyncCursorPage from ....t...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/cli/_api/fine_tuning/jobs.py", "license": "Apache License 2.0", "lines": 145, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/tool_choice_mcp.py
# 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__ = ["ToolChoiceMcp"] class ToolChoiceMcp(BaseModel): """ Use this option to force the model to call a specific tool...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/tool_choice_mcp.py", "license": "Apache License 2.0", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/tool_choice_mcp_param.py
# 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 Literal, Required, TypedDict __all__ = ["ToolChoiceMcpParam"] class ToolChoiceMcpParam(TypedDict, total=False): """ Use this opt...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/tool_choice_mcp_param.py", "license": "Apache License 2.0", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/batch_cancelled_webhook_event.py
# 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__ = ["BatchCancelledWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The uniq...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/batch_cancelled_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/batch_completed_webhook_event.py
# 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__ = ["BatchCompletedWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The uniq...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/batch_completed_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/batch_expired_webhook_event.py
# 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__ = ["BatchExpiredWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The unique...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/batch_expired_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/batch_failed_webhook_event.py
# 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__ = ["BatchFailedWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The unique ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/batch_failed_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/eval_run_canceled_webhook_event.py
# 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__ = ["EvalRunCanceledWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The uni...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/eval_run_canceled_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/eval_run_failed_webhook_event.py
# 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__ = ["EvalRunFailedWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The uniqu...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/eval_run_failed_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/eval_run_succeeded_webhook_event.py
# 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__ = ["EvalRunSucceededWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The un...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/eval_run_succeeded_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/fine_tuning_job_cancelled_webhook_event.py
# 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__ = ["FineTuningJobCancelledWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/fine_tuning_job_cancelled_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/fine_tuning_job_failed_webhook_event.py
# 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__ = ["FineTuningJobFailedWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/fine_tuning_job_failed_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/fine_tuning_job_succeeded_webhook_event.py
# 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__ = ["FineTuningJobSucceededWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/fine_tuning_job_succeeded_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/response_cancelled_webhook_event.py
# 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__ = ["ResponseCancelledWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The u...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/response_cancelled_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/response_completed_webhook_event.py
# 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__ = ["ResponseCompletedWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The u...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/response_completed_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/response_failed_webhook_event.py
# 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__ = ["ResponseFailedWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The uniq...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/response_failed_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/response_incomplete_webhook_event.py
# 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__ = ["ResponseIncompleteWebhookEvent", "Data"] class Data(BaseModel): """Event data payload.""" id: str """The ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/response_incomplete_webhook_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/webhooks/unwrap_webhook_event.py
# 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 .batch_failed_webhook_event import BatchFailedWebhookEvent from .batch_expired_webhook_event import BatchExpiredWebh...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/unwrap_webhook_event.py", "license": "Apache License 2.0", "lines": 40, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:tests/api_resources/test_webhooks.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os from unittest import mock import pytest import openai from openai._exceptions import InvalidWebhookSignatureError base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010"...
{ "repo_id": "openai/openai-python", "file_path": "tests/api_resources/test_webhooks.py", "license": "Apache License 2.0", "lines": 229, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:src/openai/types/responses/response_input_item.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo from ..._models import BaseModel from .local_environment import LocalEnvironment from .eas...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_input_item.py", "license": "Apache License 2.0", "lines": 385, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_prompt.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, Union, Optional from typing_extensions import TypeAlias from ..._models import BaseModel from .response_input_file import ResponseInputFile from .response_input_text import ResponseInputText from .response_i...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_prompt.py", "license": "Apache License 2.0", "lines": 23, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_prompt_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Dict, Union, Optional from typing_extensions import Required, TypeAlias, TypedDict from .response_input_file_param import ResponseInputFileParam from .response_input_text_param ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_prompt_param.py", "license": "Apache License 2.0", "lines": 23, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:examples/responses/background.py
from typing import List import rich from pydantic import BaseModel from openai import OpenAI class Step(BaseModel): explanation: str output: str class MathResponse(BaseModel): steps: List[Step] final_answer: str client = OpenAI() id = None with client.responses.create( input="solve 8x + 31 ...
{ "repo_id": "openai/openai-python", "file_path": "examples/responses/background.py", "license": "Apache License 2.0", "lines": 35, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:examples/responses/background_async.py
import asyncio from typing import List import rich from pydantic import BaseModel from openai._client import AsyncOpenAI class Step(BaseModel): explanation: str output: str class MathResponse(BaseModel): steps: List[Step] final_answer: str async def main() -> None: client = AsyncOpenAI() ...
{ "repo_id": "openai/openai-python", "file_path": "examples/responses/background_async.py", "license": "Apache License 2.0", "lines": 39, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:examples/responses/background_streaming.py
#!/usr/bin/env -S rye run python from typing import List import rich from pydantic import BaseModel from openai import OpenAI class Step(BaseModel): explanation: str output: str class MathResponse(BaseModel): steps: List[Step] final_answer: str client = OpenAI() id = None with client.responses.s...
{ "repo_id": "openai/openai-python", "file_path": "examples/responses/background_streaming.py", "license": "Apache License 2.0", "lines": 37, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:examples/responses/background_streaming_async.py
import asyncio from typing import List import rich from pydantic import BaseModel from openai import AsyncOpenAI class Step(BaseModel): explanation: str output: str class MathResponse(BaseModel): steps: List[Step] final_answer: str async def main() -> None: client = AsyncOpenAI() id = No...
{ "repo_id": "openai/openai-python", "file_path": "examples/responses/background_streaming_async.py", "license": "Apache License 2.0", "lines": 40, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/resources/containers/containers.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Iterable from typing_extensions import Literal import httpx from ... import _legacy_response from ...types import container_list_params, container_create_params from ..._types ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/resources/containers/containers.py", "license": "Apache License 2.0", "lines": 448, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
openai/openai-python:src/openai/resources/containers/files/content.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import httpx from .... import _legacy_response from ...._types import Body, Query, Headers, NotGiven, not_given from ...._compat import cached_property from ...._resource import SyncAPIResource, A...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/resources/containers/files/content.py", "license": "Apache License 2.0", "lines": 137, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
openai/openai-python:src/openai/resources/containers/files/files.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Mapping, cast from typing_extensions import Literal import httpx from .... import _legacy_response from .content import ( Content, AsyncContent, ContentWithRawRespo...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/resources/containers/files/files.py", "license": "Apache License 2.0", "lines": 460, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
openai/openai-python:src/openai/types/container_create_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union, Iterable from typing_extensions import Literal, Required, TypeAlias, TypedDict from .._types import SequenceNotStr from .responses.inline_skill_param import InlineSkillPa...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/container_create_params.py", "license": "Apache License 2.0", "lines": 32, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/container_create_response.py
# 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 __all__ = ["ContainerCreateResponse", "ExpiresAfter", "NetworkPolicy"] class ExpiresAfter(BaseModel): """ The contain...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/container_create_response.py", "license": "Apache License 2.0", "lines": 44, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/container_list_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, TypedDict __all__ = ["ContainerListParams"] class ContainerListParams(TypedDict, total=False): after: str """A cursor for use in pagination. `...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/container_list_params.py", "license": "Apache License 2.0", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/container_list_response.py
# 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 __all__ = ["ContainerListResponse", "ExpiresAfter", "NetworkPolicy"] class ExpiresAfter(BaseModel): """ The container...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/container_list_response.py", "license": "Apache License 2.0", "lines": 44, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/container_retrieve_response.py
# 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 __all__ = ["ContainerRetrieveResponse", "ExpiresAfter", "NetworkPolicy"] class ExpiresAfter(BaseModel): """ The conta...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/container_retrieve_response.py", "license": "Apache License 2.0", "lines": 44, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/containers/file_create_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import TypedDict from ..._types import FileTypes __all__ = ["FileCreateParams"] class FileCreateParams(TypedDict, total=False): file: FileTypes """The File object...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/containers/file_create_params.py", "license": "Apache License 2.0", "lines": 10, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/containers/file_create_response.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["FileCreateResponse"] class FileCreateResponse(BaseModel): id: str """Unique identifier for the file.""" bytes: int """Size of the...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/containers/file_create_response.py", "license": "Apache License 2.0", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/containers/file_list_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, TypedDict __all__ = ["FileListParams"] class FileListParams(TypedDict, total=False): after: str """A cursor for use in pagination. `after` is ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/containers/file_list_params.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/containers/file_list_response.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["FileListResponse"] class FileListResponse(BaseModel): id: str """Unique identifier for the file.""" bytes: int """Size of the fil...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/containers/file_list_response.py", "license": "Apache License 2.0", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/containers/file_retrieve_response.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["FileRetrieveResponse"] class FileRetrieveResponse(BaseModel): id: str """Unique identifier for the file.""" bytes: int """Size of...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/containers/file_retrieve_response.py", "license": "Apache License 2.0", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:tests/api_resources/containers/files/test_content.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os from typing import Any, cast import httpx import pytest from respx import MockRouter import openai._legacy_response as _legacy_response from openai import OpenAI, AsyncOpenAI from tests...
{ "repo_id": "openai/openai-python", "file_path": "tests/api_resources/containers/files/test_content.py", "license": "Apache License 2.0", "lines": 126, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:tests/api_resources/containers/test_files.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os from typing import Any, cast import pytest from openai import OpenAI, AsyncOpenAI from tests.utils import assert_matches_type from openai.pagination import SyncCursorPage, AsyncCursorPa...
{ "repo_id": "openai/openai-python", "file_path": "tests/api_resources/containers/test_files.py", "license": "Apache License 2.0", "lines": 338, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:tests/api_resources/test_containers.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os from typing import Any, cast import pytest from openai import OpenAI, AsyncOpenAI from tests.utils import assert_matches_type from openai.types import ( ContainerListResponse, C...
{ "repo_id": "openai/openai-python", "file_path": "tests/api_resources/test_containers.py", "license": "Apache License 2.0", "lines": 290, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:src/openai/types/responses/response_code_interpreter_tool_call_param.py
# 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 __all__ = ["ResponseCodeInterpreterToolCallParam", "Output", "OutputLogs", "Outpu...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_code_interpreter_tool_call_param.py", "license": "Apache License 2.0", "lines": 38, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_image_gen_call_completed_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseImageGenCallCompletedEvent"] class ResponseImageGenCallCompletedEvent(BaseModel): """ Emitted when an image generation tool call h...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_image_gen_call_completed_event.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_image_gen_call_generating_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseImageGenCallGeneratingEvent"] class ResponseImageGenCallGeneratingEvent(BaseModel): """ Emitted when an image generation tool call...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_image_gen_call_generating_event.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_image_gen_call_in_progress_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseImageGenCallInProgressEvent"] class ResponseImageGenCallInProgressEvent(BaseModel): """Emitted when an image generation tool call is i...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_image_gen_call_in_progress_event.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_image_gen_call_partial_image_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseImageGenCallPartialImageEvent"] class ResponseImageGenCallPartialImageEvent(BaseModel): """Emitted when a partial image is available d...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_image_gen_call_partial_image_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_mcp_call_arguments_delta_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallArgumentsDeltaEvent"] class ResponseMcpCallArgumentsDeltaEvent(BaseModel): """ Emitted when there is a delta (partial updat...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_mcp_call_arguments_delta_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_mcp_call_arguments_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallArgumentsDoneEvent"] class ResponseMcpCallArgumentsDoneEvent(BaseModel): """Emitted when the arguments for an MCP tool call are...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_mcp_call_arguments_done_event.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_mcp_call_completed_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallCompletedEvent"] class ResponseMcpCallCompletedEvent(BaseModel): """Emitted when an MCP tool call has completed successfully."...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_mcp_call_completed_event.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_mcp_call_failed_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallFailedEvent"] class ResponseMcpCallFailedEvent(BaseModel): """Emitted when an MCP tool call has failed.""" item_id: str ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_mcp_call_failed_event.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_mcp_call_in_progress_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallInProgressEvent"] class ResponseMcpCallInProgressEvent(BaseModel): """Emitted when an MCP tool call is in progress.""" it...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_mcp_call_in_progress_event.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_mcp_list_tools_completed_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpListToolsCompletedEvent"] class ResponseMcpListToolsCompletedEvent(BaseModel): """Emitted when the list of available MCP tools has ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_mcp_list_tools_completed_event.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_mcp_list_tools_failed_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpListToolsFailedEvent"] class ResponseMcpListToolsFailedEvent(BaseModel): """Emitted when the attempt to list available MCP tools ha...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_mcp_list_tools_failed_event.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_mcp_list_tools_in_progress_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpListToolsInProgressEvent"] class ResponseMcpListToolsInProgressEvent(BaseModel): """ Emitted when the system is in the process ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_mcp_list_tools_in_progress_event.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_output_text_annotation_added_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseOutputTextAnnotationAddedEvent"] class ResponseOutputTextAnnotationAddedEvent(BaseModel): """Emitted when an annotation is added to ou...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_output_text_annotation_added_event.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_queued_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from .response import Response from ..._models import BaseModel __all__ = ["ResponseQueuedEvent"] class ResponseQueuedEvent(BaseModel): """Emitted when a response is queued and waiting to...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_queued_event.py", "license": "Apache License 2.0", "lines": 13, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/_utils/_resources_proxy.py
from __future__ import annotations from typing import Any from typing_extensions import override from ._proxy import LazyProxy class ResourcesProxy(LazyProxy[Any]): """A proxy for the `openai.resources` module. This is used so that we can lazily import `openai.resources` only when needed *and* so that ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/_utils/_resources_proxy.py", "license": "Apache License 2.0", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/resources/fine_tuning/alpha/alpha.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from .graders import ( Graders, AsyncGraders, GradersWithRawResponse, AsyncGradersWithRawResponse, GradersWithStreamingResponse, AsyncGradersWithStreamingResponse, ) from .....
{ "repo_id": "openai/openai-python", "file_path": "src/openai/resources/fine_tuning/alpha/alpha.py", "license": "Apache License 2.0", "lines": 75, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/resources/fine_tuning/alpha/graders.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import httpx from .... import _legacy_response from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ...._utils import maybe_transform, async_maybe_transform from ...._...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/resources/fine_tuning/alpha/graders.py", "license": "Apache License 2.0", "lines": 228, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
openai/openai-python:src/openai/types/fine_tuning/alpha/grader_run_params.py
# 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 Required, TypeAlias, TypedDict from ...graders.multi_grader_param import MultiGraderParam from ...graders.python_grader_param import PythonGr...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/alpha/grader_run_params.py", "license": "Apache License 2.0", "lines": 28, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/alpha/grader_run_response.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, Optional from pydantic import Field as FieldInfo from ...._models import BaseModel __all__ = ["GraderRunResponse", "Metadata", "MetadataErrors"] class MetadataErrors(BaseModel): formula_parse_error: ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/alpha/grader_run_response.py", "license": "Apache License 2.0", "lines": 35, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/alpha/grader_validate_params.py
# 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 Required, TypeAlias, TypedDict from ...graders.multi_grader_param import MultiGraderParam from ...graders.python_grader_param import PythonGr...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/alpha/grader_validate_params.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/alpha/grader_validate_response.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union, Optional from typing_extensions import TypeAlias from ...._models import BaseModel from ...graders.multi_grader import MultiGrader from ...graders.python_grader import PythonGrader from ...graders.score_mod...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/alpha/grader_validate_response.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/dpo_hyperparameters.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import Literal from ..._models import BaseModel __all__ = ["DpoHyperparameters"] class DpoHyperparameters(BaseModel): """The hyperparameters used for the DPO fine-tuning job."""...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/dpo_hyperparameters.py", "license": "Apache License 2.0", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/fine_tuning/dpo_hyperparameters_param.py
# 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 Literal, TypedDict __all__ = ["DpoHyperparametersParam"] class DpoHyperparametersParam(TypedDict, total=False): """The hyperparameters ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/dpo_hyperparameters_param.py", "license": "Apache License 2.0", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/fine_tuning/dpo_method.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from ..._models import BaseModel from .dpo_hyperparameters import DpoHyperparameters __all__ = ["DpoMethod"] class DpoMethod(BaseModel): """Configuration for the DPO fine-tuning method.""" hyp...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/dpo_method.py", "license": "Apache License 2.0", "lines": 9, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/dpo_method_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import TypedDict from .dpo_hyperparameters_param import DpoHyperparametersParam __all__ = ["DpoMethodParam"] class DpoMethodParam(TypedDict, total=False): """Configur...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/dpo_method_param.py", "license": "Apache License 2.0", "lines": 9, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/reinforcement_hyperparameters.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union, Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ReinforcementHyperparameters"] class ReinforcementHyperparameters(BaseModel): """The hyperparameters used f...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/reinforcement_hyperparameters.py", "license": "Apache License 2.0", "lines": 30, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/fine_tuning/reinforcement_hyperparameters_param.py
# 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 Literal, TypedDict __all__ = ["ReinforcementHyperparametersParam"] class ReinforcementHyperparametersParam(TypedDict, total=False): """...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/reinforcement_hyperparameters_param.py", "license": "Apache License 2.0", "lines": 30, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/fine_tuning/reinforcement_method.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union, Optional from typing_extensions import TypeAlias from ..._models import BaseModel from ..graders.multi_grader import MultiGrader from ..graders.python_grader import PythonGrader from ..graders.score_model_g...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/reinforcement_method.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/reinforcement_method_param.py
# 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 Required, TypeAlias, TypedDict from ..graders.multi_grader_param import MultiGraderParam from ..graders.python_grader_param import PythonGrad...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/reinforcement_method_param.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/supervised_hyperparameters.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import Literal from ..._models import BaseModel __all__ = ["SupervisedHyperparameters"] class SupervisedHyperparameters(BaseModel): """The hyperparameters used for the fine-tuni...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/supervised_hyperparameters.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/fine_tuning/supervised_hyperparameters_param.py
# 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 Literal, TypedDict __all__ = ["SupervisedHyperparametersParam"] class SupervisedHyperparametersParam(TypedDict, total=False): """The hy...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/supervised_hyperparameters_param.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/fine_tuning/supervised_method.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from ..._models import BaseModel from .supervised_hyperparameters import SupervisedHyperparameters __all__ = ["SupervisedMethod"] class SupervisedMethod(BaseModel): """Configuration for the supervi...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/supervised_method.py", "license": "Apache License 2.0", "lines": 9, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/fine_tuning/supervised_method_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import TypedDict from .supervised_hyperparameters_param import SupervisedHyperparametersParam __all__ = ["SupervisedMethodParam"] class SupervisedMethodParam(TypedDict, t...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/fine_tuning/supervised_method_param.py", "license": "Apache License 2.0", "lines": 9, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/graders/label_model_grader_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union, Iterable from typing_extensions import Literal, Required, TypeAlias, TypedDict from ..._types import SequenceNotStr from .grader_inputs_param import GraderInputsParam fro...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/graders/label_model_grader_param.py", "license": "Apache License 2.0", "lines": 68, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/graders/multi_grader.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import Literal, TypeAlias from ..._models import BaseModel from .python_grader import PythonGrader from .label_model_grader import LabelModelGrader from .score_model_grader import Scor...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/graders/multi_grader.py", "license": "Apache License 2.0", "lines": 26, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple