sample_id stringlengths 21 196 | text stringlengths 105 936k | metadata dict | category stringclasses 6
values |
|---|---|---|---|
openai/openai-python:src/openai/types/responses/response_input_file_content.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__ = ["ResponseInputFileContent"]
class ResponseInputFileContent(BaseModel):
"""A file input to the model."""
type: ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_input_file_content.py",
"license": "Apache License 2.0",
"lines": 17,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/responses/response_input_file_content_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__ = ["ResponseInputFileContentParam"]
class ResponseInputFileContentParam(TypedDict, total=False):
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_input_file_content_param.py",
"license": "Apache License 2.0",
"lines": 17,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/responses/response_input_image_content.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__ = ["ResponseInputImageContent"]
class ResponseInputImageContent(BaseModel):
"""An image input to the model.
Learn... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_input_image_content.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_input_image_content_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__ = ["ResponseInputImageContentParam"]
class ResponseInputImageContentParam(TypedDict, total=False):
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_input_image_content_param.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_input_text_content.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["ResponseInputTextContent"]
class ResponseInputTextContent(BaseModel):
"""A text input to the model."""
text: str
"""The text input to... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_input_text_content.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/response_input_text_content_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__ = ["ResponseInputTextContentParam"]
class ResponseInputTextContentParam(TypedDict, total=False):
"""A text input to the mod... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_input_text_content_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/realtime/audio_transcription.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__ = ["AudioTranscription"]
class AudioTranscription(BaseModel):
language: Optional[str] = None
"""The languag... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/audio_transcription.py",
"license": "Apache License 2.0",
"lines": 37,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/audio_transcription_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__ = ["AudioTranscriptionParam"]
class AudioTranscriptionParam(TypedDict, total=False):
language: str
"""Th... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/audio_transcription_param.py",
"license": "Apache License 2.0",
"lines": 36,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_audio_config_input.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from ..._models import BaseModel
from .audio_transcription import AudioTranscription
from .noise_reduction_type import NoiseReductionType
from .realtime_audio_formats import RealtimeAudioFormats
from .rea... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_config_input.py",
"license": "Apache License 2.0",
"lines": 53,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_audio_config_input_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 TypedDict
from .noise_reduction_type import NoiseReductionType
from .audio_transcription_param import AudioTranscriptionParam
from .realti... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_config_input_param.py",
"license": "Apache License 2.0",
"lines": 54,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_audio_config_output.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
from .realtime_audio_formats import RealtimeAudioFormats
__all__ = ["RealtimeAudioConfigOutput"]
class RealtimeAudioConfigO... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_config_output.py",
"license": "Apache License 2.0",
"lines": 27,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_audio_config_output_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
from .realtime_audio_formats_param import RealtimeAudioFormatsParam
__all__ = ["RealtimeAudioConfigOutputParam"]
class ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_config_output_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/realtime/realtime_audio_formats.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Union, Optional
from typing_extensions import Literal, Annotated, TypeAlias
from ..._utils import PropertyInfo
from ..._models import BaseModel
__all__ = ["RealtimeAudioFormats", "AudioPCM", "AudioPCMU", "AudioPC... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_formats.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/realtime/realtime_audio_formats_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, TypeAlias, TypedDict
__all__ = ["RealtimeAudioFormatsParam", "AudioPCM", "AudioPCMU", "AudioPCMA"]
class AudioPCM(TypedDict, total... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_formats_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/realtime/realtime_audio_input_turn_detection.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Union, Optional
from typing_extensions import Literal, Annotated, TypeAlias
from ..._utils import PropertyInfo
from ..._models import BaseModel
__all__ = ["RealtimeAudioInputTurnDetection", "ServerVad", "Semantic... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_input_turn_detection.py",
"license": "Apache License 2.0",
"lines": 85,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_audio_input_turn_detection_param.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import Union, Optional
from typing_extensions import Literal, Required, TypeAlias, TypedDict
__all__ = ["RealtimeAudioInputTurnDetectionParam", "ServerVad", "SemanticVad"]
class Serv... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_input_turn_detection_param.py",
"license": "Apache License 2.0",
"lines": 82,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_response_create_audio_output.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
from .realtime_audio_formats import RealtimeAudioFormats
__all__ = ["RealtimeResponseCreateAudioOutput", "Output"]
class Ou... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_response_create_audio_output.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/realtime/realtime_response_create_audio_output_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
from .realtime_audio_formats_param import RealtimeAudioFormatsParam
__all__ = ["RealtimeResponseCreateAudioOutputParam", ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_response_create_audio_output_param.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/realtime/realtime_response_create_mcp_tool.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, TypeAlias
from ..._models import BaseModel
__all__ = [
"RealtimeResponseCreateMcpTool",
"AllowedTools",
"AllowedToolsMcpToolFilter",
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_response_create_mcp_tool.py",
"license": "Apache License 2.0",
"lines": 110,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_response_create_mcp_tool_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 Literal, Required, TypeAlias, TypedDict
from ..._types import SequenceNotStr
__all__ = [
"RealtimeResponseCreateMcpToolP... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_response_create_mcp_tool_param.py",
"license": "Apache License 2.0",
"lines": 109,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_response_create_params.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, TypeAlias
from ..._models import BaseModel
from ..shared.metadata import Metadata
from .conversation_item import ConversationItem
from .realtime_functio... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_response_create_params.py",
"license": "Apache License 2.0",
"lines": 77,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_response_create_params_param.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import List, Union, Iterable, Optional
from typing_extensions import Literal, TypeAlias, TypedDict
from ..shared_params.metadata import Metadata
from .conversation_item_param import Co... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_response_create_params_param.py",
"license": "Apache License 2.0",
"lines": 77,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_session_client_secret.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from ..._models import BaseModel
__all__ = ["RealtimeSessionClientSecret"]
class RealtimeSessionClientSecret(BaseModel):
"""Ephemeral key returned by the API."""
expires_at: int
"""Timestamp for when the token expires... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_session_client_secret.py",
"license": "Apache License 2.0",
"lines": 15,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_audio.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from ..._models import BaseModel
from .realtime_transcription_session_audio_input import RealtimeTranscriptionSessionAudioInput
__all__ = ["RealtimeTranscriptionSessionAudio"]
class RealtimeTranscripti... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_transcription_session_audio.py",
"license": "Apache License 2.0",
"lines": 8,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_audio_input.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from ..._models import BaseModel
from .audio_transcription import AudioTranscription
from .noise_reduction_type import NoiseReductionType
from .realtime_audio_formats import RealtimeAudioFormats
from .rea... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_transcription_session_audio_input.py",
"license": "Apache License 2.0",
"lines": 55,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_audio_input_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 TypedDict
from .noise_reduction_type import NoiseReductionType
from .audio_transcription_param import AudioTranscriptionParam
from .realti... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_transcription_session_audio_input_param.py",
"license": "Apache License 2.0",
"lines": 56,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": "... | documentation |
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_audio_input_turn_detection.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Union, Optional
from typing_extensions import Literal, Annotated, TypeAlias
from ..._utils import PropertyInfo
from ..._models import BaseModel
__all__ = ["RealtimeTranscriptionSessionAudioInputTurnDetection", "S... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_transcription_session_audio_input_turn_detection.py",
"license": "Apache License 2.0",
"lines": 85,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"tem... | documentation |
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_audio_input_turn_detection_param.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import Union, Optional
from typing_extensions import Literal, Required, TypeAlias, TypedDict
__all__ = ["RealtimeTranscriptionSessionAudioInputTurnDetectionParam", "ServerVad", "Semant... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_transcription_session_audio_input_turn_detection_param.py",
"license": "Apache License 2.0",
"lines": 82,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
... | documentation |
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_audio_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 .realtime_transcription_session_audio_input_param import RealtimeTranscriptionSessionAudioInputParam
__all__ = ["RealtimeTranscriptionSessionAudioPara... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_transcription_session_audio_param.py",
"license": "Apache License 2.0",
"lines": 8,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_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
from .audio_transcription import AudioTranscription
from .noise_reduction_type import NoiseReductionType
from .realtime_audio_f... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_transcription_session_create_response.py",
"license": "Apache License 2.0",
"lines": 49,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
... | documentation |
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_turn_detection.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from ..._models import BaseModel
__all__ = ["RealtimeTranscriptionSessionTurnDetection"]
class RealtimeTranscriptionSessionTurnDetection(BaseModel):
"""Configuration for turn detection.
Can be... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_transcription_session_turn_detection.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/realtime/realtime_truncation_retention_ratio.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__ = ["RealtimeTruncationRetentionRatio", "TokenLimits"]
class TokenLimits(BaseModel):
"""Optional custom token limits fo... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_truncation_retention_ratio.py",
"license": "Apache License 2.0",
"lines": 34,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_truncation_retention_ratio_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__ = ["RealtimeTruncationRetentionRatioParam", "TokenLimits"]
class TokenLimits(TypedDict, total=False):
"""Optional custom to... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_truncation_retention_ratio_param.py",
"license": "Apache License 2.0",
"lines": 33,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/_utils/_compat.py | from __future__ import annotations
import sys
import typing_extensions
from typing import Any, Type, Union, Literal, Optional
from datetime import date, datetime
from typing_extensions import get_args as _get_args, get_origin as _get_origin
from .._types import StrBytesIntFloat
from ._datetime_parse import parse_date... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/_utils/_compat.py",
"license": "Apache License 2.0",
"lines": 27,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/_utils/_datetime_parse.py | """
This file contains code from https://github.com/pydantic/pydantic/blob/main/pydantic/v1/datetime_parse.py
without the Pydantic v1 specific errors.
"""
from __future__ import annotations
import re
from typing import Dict, Union, Optional
from datetime import date, datetime, timezone, timedelta
from .._types impor... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/_utils/_datetime_parse.py",
"license": "Apache License 2.0",
"lines": 103,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
openai/openai-python:tests/test_utils/test_datetime_parse.py | """
Copied from https://github.com/pydantic/pydantic/blob/v1.10.22/tests/test_datetime_parse.py
with modifications so it works without pydantic v1 imports.
"""
from typing import Type, Union
from datetime import date, datetime, timezone, timedelta
import pytest
from openai._utils import parse_date, parse_datetime
... | {
"repo_id": "openai/openai-python",
"file_path": "tests/test_utils/test_datetime_parse.py",
"license": "Apache License 2.0",
"lines": 101,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:src/openai/types/responses/response_input_audio.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["ResponseInputAudio", "InputAudio"]
class InputAudio(BaseModel):
data: str
"""Base64-encoded audio data."""
format: Literal["mp3", "wa... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_input_audio.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_input_audio_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__ = ["ResponseInputAudioParam", "InputAudio"]
class InputAudio(TypedDict, total=False):
data: Required[str]
"""Base64-enc... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_input_audio_param.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:examples/realtime/realtime.py | #!/usr/bin/env rye run python
import asyncio
from openai import AsyncOpenAI
# Azure OpenAI Realtime Docs
# How-to: https://learn.microsoft.com/azure/ai-services/openai/how-to/realtime-audio
# Supported models and API versions: https://learn.microsoft.com/azure/ai-services/openai/how-to/realtime-audio#supported-model... | {
"repo_id": "openai/openai-python",
"file_path": "examples/realtime/realtime.py",
"license": "Apache License 2.0",
"lines": 44,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/resources/realtime/client_secrets.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 ..._comp... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/resources/realtime/client_secrets.py",
"license": "Apache License 2.0",
"lines": 169,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
openai/openai-python:src/openai/resources/realtime/realtime.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
import json
import logging
from types import TracebackType
from typing import TYPE_CHECKING, Any, Iterator, cast
from typing_extensions import AsyncIterator
import httpx
from pydantic import BaseM... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/resources/realtime/realtime.py",
"license": "Apache License 2.0",
"lines": 885,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
openai/openai-python:src/openai/types/realtime/client_secret_create_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 Literal, TypeAlias, TypedDict
from .realtime_session_create_request_param import RealtimeSessionCreateRequestParam
from .realtime_transcripti... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/client_secret_create_params.py",
"license": "Apache License 2.0",
"lines": 37,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/client_secret_create_response.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 ..._models import BaseModel
from .realtime_session_create_response import RealtimeSessionCreateResponse
from .realti... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/client_secret_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/realtime/conversation_created_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__ = ["ConversationCreatedEvent", "Conversation"]
class Conversation(BaseModel):
"""The conversation resource."""
id... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_created_event.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/realtime/conversation_item.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 .realtime_mcp_tool_call import RealtimeMcpToolCall
from .realtime_mcp_list_tools import RealtimeMcpListTools
from .r... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item.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/realtime/conversation_item_added.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
from .conversation_item import ConversationItem
__all__ = ["ConversationItemAdded"]
class ConversationItemAdded(BaseModel):
""... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_added.py",
"license": "Apache License 2.0",
"lines": 24,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_create_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
from .conversation_item import ConversationItem
__all__ = ["ConversationItemCreateEvent"]
class ConversationItemCreateEvent(BaseMo... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_create_event.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/realtime/conversation_item_create_event_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
from .conversation_item_param import ConversationItemParam
__all__ = ["ConversationItemCreateEventParam"]
class ConversationItemCreate... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_create_event_param.py",
"license": "Apache License 2.0",
"lines": 29,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_created_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
from .conversation_item import ConversationItem
__all__ = ["ConversationItemCreatedEvent"]
class ConversationItemCreatedEvent(Base... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_created_event.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/realtime/conversation_item_delete_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__ = ["ConversationItemDeleteEvent"]
class ConversationItemDeleteEvent(BaseModel):
"""Send this event when you want to re... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_delete_event.py",
"license": "Apache License 2.0",
"lines": 18,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_delete_event_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__ = ["ConversationItemDeleteEventParam"]
class ConversationItemDeleteEventParam(TypedDict, total=False):
"""Send this event w... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_delete_event_param.py",
"license": "Apache License 2.0",
"lines": 17,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_deleted_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__ = ["ConversationItemDeletedEvent"]
class ConversationItemDeletedEvent(BaseModel):
"""
Returned when an item in the conversation is deleted by ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_deleted_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/realtime/conversation_item_done.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
from .conversation_item import ConversationItem
__all__ = ["ConversationItemDone"]
class ConversationItemDone(BaseModel):
"""R... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_done.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/realtime/conversation_item_input_audio_transcription_completed_event.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, TypeAlias
from ..._models import BaseModel
from .log_prob_properties import LogProbProperties
__all__ = [
"ConversationItemInputAudioTranscriptionC... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_input_audio_transcription_completed_event.py",
"license": "Apache License 2.0",
"lines": 68,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"t... | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.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
from .log_prob_properties import LogProbProperties
__all__ = ["ConversationItemInputAudioTranscriptionDeltaEvent"]
class Con... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py",
"license": "Apache License 2.0",
"lines": 28,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"templ... | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_input_audio_transcription_failed_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__ = ["ConversationItemInputAudioTranscriptionFailedEvent", "Error"]
class Error(BaseModel):
"""Details of the transcript... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_input_audio_transcription_failed_event.py",
"license": "Apache License 2.0",
"lines": 31,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"temp... | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_input_audio_transcription_segment.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["ConversationItemInputAudioTranscriptionSegment"]
class ConversationItemInputAudioTranscriptionSegment(BaseModel):
"""Returned when an input au... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_input_audio_transcription_segment.py",
"license": "Apache License 2.0",
"lines": 24,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template"... | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_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 TypeAlias
from .realtime_mcp_tool_call_param import RealtimeMcpToolCallParam
from .realtime_mcp_list_tools_param import RealtimeMcpListToolsP... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_param.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/realtime/conversation_item_retrieve_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__ = ["ConversationItemRetrieveEvent"]
class ConversationItemRetrieveEvent(BaseModel):
"""
Send this event when you w... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_retrieve_event.py",
"license": "Apache License 2.0",
"lines": 18,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_retrieve_event_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__ = ["ConversationItemRetrieveEventParam"]
class ConversationItemRetrieveEventParam(TypedDict, total=False):
"""
Send thi... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_retrieve_event_param.py",
"license": "Apache License 2.0",
"lines": 17,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_truncate_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__ = ["ConversationItemTruncateEvent"]
class ConversationItemTruncateEvent(BaseModel):
"""Send this event to truncate a p... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_truncate_event.py",
"license": "Apache License 2.0",
"lines": 32,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_truncate_event_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__ = ["ConversationItemTruncateEventParam"]
class ConversationItemTruncateEventParam(TypedDict, total=False):
"""Send this eve... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_truncate_event_param.py",
"license": "Apache License 2.0",
"lines": 31,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/conversation_item_truncated_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__ = ["ConversationItemTruncatedEvent"]
class ConversationItemTruncatedEvent(BaseModel):
"""
Returned when an earlier assistant audio message ite... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/conversation_item_truncated_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/realtime/input_audio_buffer_append_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__ = ["InputAudioBufferAppendEvent"]
class InputAudioBufferAppendEvent(BaseModel):
"""Send this event to append audio byt... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_append_event.py",
"license": "Apache License 2.0",
"lines": 28,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/input_audio_buffer_append_event_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__ = ["InputAudioBufferAppendEventParam"]
class InputAudioBufferAppendEventParam(TypedDict, total=False):
"""Send this event t... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_append_event_param.py",
"license": "Apache License 2.0",
"lines": 27,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/input_audio_buffer_clear_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__ = ["InputAudioBufferClearEvent"]
class InputAudioBufferClearEvent(BaseModel):
"""Send this event to clear the audio by... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_clear_event.py",
"license": "Apache License 2.0",
"lines": 14,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/input_audio_buffer_clear_event_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__ = ["InputAudioBufferClearEventParam"]
class InputAudioBufferClearEventParam(TypedDict, total=False):
"""Send this event to ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_clear_event_param.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/realtime/input_audio_buffer_cleared_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__ = ["InputAudioBufferClearedEvent"]
class InputAudioBufferClearedEvent(BaseModel):
"""
Returned when the input audio buffer is cleared by the c... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_cleared_event.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/realtime/input_audio_buffer_commit_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__ = ["InputAudioBufferCommitEvent"]
class InputAudioBufferCommitEvent(BaseModel):
"""
Send this event to commit the ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_commit_event.py",
"license": "Apache License 2.0",
"lines": 14,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/input_audio_buffer_commit_event_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__ = ["InputAudioBufferCommitEventParam"]
class InputAudioBufferCommitEventParam(TypedDict, total=False):
"""
Send this ev... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_commit_event_param.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/realtime/input_audio_buffer_committed_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__ = ["InputAudioBufferCommittedEvent"]
class InputAudioBufferCommittedEvent(BaseModel):
"""
Returned when an input a... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_committed_event.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/realtime/input_audio_buffer_speech_started_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__ = ["InputAudioBufferSpeechStartedEvent"]
class InputAudioBufferSpeechStartedEvent(BaseModel):
"""
Sent by the server when in `server_vad` mode... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_speech_started_event.py",
"license": "Apache License 2.0",
"lines": 29,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/input_audio_buffer_speech_stopped_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__ = ["InputAudioBufferSpeechStoppedEvent"]
class InputAudioBufferSpeechStoppedEvent(BaseModel):
"""
Returned in `server_vad` mode when the serve... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_speech_stopped_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/realtime/input_audio_buffer_timeout_triggered.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["InputAudioBufferTimeoutTriggered"]
class InputAudioBufferTimeoutTriggered(BaseModel):
"""Returned when the Server VAD timeout is triggered for... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_timeout_triggered.py",
"license": "Apache License 2.0",
"lines": 34,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/log_prob_properties.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List
from ..._models import BaseModel
__all__ = ["LogProbProperties"]
class LogProbProperties(BaseModel):
"""A log probability object."""
token: str
"""The token that was used to generate the log p... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/log_prob_properties.py",
"license": "Apache License 2.0",
"lines": 12,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/mcp_list_tools_completed.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["McpListToolsCompleted"]
class McpListToolsCompleted(BaseModel):
"""Returned when listing MCP tools has completed for an item."""
event_id... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/mcp_list_tools_completed.py",
"license": "Apache License 2.0",
"lines": 12,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/mcp_list_tools_failed.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["McpListToolsFailed"]
class McpListToolsFailed(BaseModel):
"""Returned when listing MCP tools has failed for an item."""
event_id: str
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/mcp_list_tools_failed.py",
"license": "Apache License 2.0",
"lines": 12,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/mcp_list_tools_in_progress.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["McpListToolsInProgress"]
class McpListToolsInProgress(BaseModel):
"""Returned when listing MCP tools is in progress for an item."""
event... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/mcp_list_tools_in_progress.py",
"license": "Apache License 2.0",
"lines": 12,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/output_audio_buffer_clear_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__ = ["OutputAudioBufferClearEvent"]
class OutputAudioBufferClearEvent(BaseModel):
"""**WebRTC/SIP Only:** Emit to cut of... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/output_audio_buffer_clear_event.py",
"license": "Apache License 2.0",
"lines": 17,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/output_audio_buffer_clear_event_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__ = ["OutputAudioBufferClearEventParam"]
class OutputAudioBufferClearEventParam(TypedDict, total=False):
"""**WebRTC/SIP Only... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/output_audio_buffer_clear_event_param.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/realtime/rate_limits_updated_event.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__ = ["RateLimitsUpdatedEvent", "RateLimit"]
class RateLimit(BaseModel):
limit: Optional[int] = None
"""The max... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/rate_limits_updated_event.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/realtime/realtime_audio_config.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from ..._models import BaseModel
from .realtime_audio_config_input import RealtimeAudioConfigInput
from .realtime_audio_config_output import RealtimeAudioConfigOutput
__all__ = ["RealtimeAudioConfig"]
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_config.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/realtime/realtime_audio_config_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 .realtime_audio_config_input_param import RealtimeAudioConfigInputParam
from .realtime_audio_config_output_param import RealtimeAudioConfigOutputParam
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_audio_config_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/realtime/realtime_client_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 .session_update_event import SessionUpdateEvent
from .response_cancel_event import ResponseCancelEvent
from .respons... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_client_event.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/realtime/realtime_client_event_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 TypeAlias
from .session_update_event_param import SessionUpdateEventParam
from .response_cancel_event_param import ResponseCancelEventParam
f... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_client_event_param.py",
"license": "Apache License 2.0",
"lines": 29,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/realtime_connect_params.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import TypedDict
__all__ = ["RealtimeConnectParams"]
class RealtimeConnectParams(TypedDict, total=False):
call_id: str
model: str
| {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_connect_params.py",
"license": "Apache License 2.0",
"lines": 7,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/realtime_conversation_item_assistant_message.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__ = ["RealtimeConversationItemAssistantMessage", "Content"]
class Content(BaseModel):
audio: Optional[str] = None
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_assistant_message.py",
"license": "Apache License 2.0",
"lines": 42,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_conversation_item_assistant_message_param.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, Required, TypedDict
__all__ = ["RealtimeConversationItemAssistantMessageParam", "Content"]
class Content(TypedDict, total=False... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_assistant_message_param.py",
"license": "Apache License 2.0",
"lines": 42,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template":... | documentation |
openai/openai-python:src/openai/types/realtime/realtime_conversation_item_function_call.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__ = ["RealtimeConversationItemFunctionCall"]
class RealtimeConversationItemFunctionCall(BaseModel):
"""A function call i... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_function_call.py",
"license": "Apache License 2.0",
"lines": 28,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_conversation_item_function_call_output.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__ = ["RealtimeConversationItemFunctionCallOutput"]
class RealtimeConversationItemFunctionCallOutput(BaseModel):
"""A fun... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_function_call_output.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/realtime/realtime_conversation_item_function_call_output_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__ = ["RealtimeConversationItemFunctionCallOutputParam"]
class RealtimeConversationItemFunctionCallOutputParam(TypedDict, total=Fa... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_function_call_output_param.py",
"license": "Apache License 2.0",
"lines": 25,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"templat... | documentation |
openai/openai-python:src/openai/types/realtime/realtime_conversation_item_function_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__ = ["RealtimeConversationItemFunctionCallParam"]
class RealtimeConversationItemFunctionCallParam(TypedDict, total=False):
""... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_function_call_param.py",
"license": "Apache License 2.0",
"lines": 27,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
... | documentation |
openai/openai-python:src/openai/types/realtime/realtime_conversation_item_system_message.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__ = ["RealtimeConversationItemSystemMessage", "Content"]
class Content(BaseModel):
text: Optional[str] = None
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_system_message.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/realtime/realtime_conversation_item_system_message_param.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, Required, TypedDict
__all__ = ["RealtimeConversationItemSystemMessageParam", "Content"]
class Content(TypedDict, total=False):
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_system_message_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/realtime/realtime_conversation_item_user_message.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__ = ["RealtimeConversationItemUserMessage", "Content"]
class Content(BaseModel):
audio: Optional[str] = None
"... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_user_message.py",
"license": "Apache License 2.0",
"lines": 48,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_conversation_item_user_message_param.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, Required, TypedDict
__all__ = ["RealtimeConversationItemUserMessageParam", "Content"]
class Content(TypedDict, total=False):
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_conversation_item_user_message_param.py",
"license": "Apache License 2.0",
"lines": 48,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_error.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from ..._models import BaseModel
__all__ = ["RealtimeError"]
class RealtimeError(BaseModel):
"""Details of the error."""
message: str
"""A human-readable error message."""
type: str
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_error.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/realtime/realtime_error_event.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
from .realtime_error import RealtimeError
__all__ = ["RealtimeErrorEvent"]
class RealtimeErrorEvent(BaseModel):
"""
Returned when an error occurs, whi... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_error_event.py",
"license": "Apache License 2.0",
"lines": 17,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/realtime_mcp_approval_request.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["RealtimeMcpApprovalRequest"]
class RealtimeMcpApprovalRequest(BaseModel):
"""A Realtime item requesting human approval of a tool invocation.""... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_mcp_approval_request.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/realtime/realtime_mcp_approval_request_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__ = ["RealtimeMcpApprovalRequestParam"]
class RealtimeMcpApprovalRequestParam(TypedDict, total=False):
"""A Realtime item req... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/realtime_mcp_approval_request_param.py",
"license": "Apache License 2.0",
"lines": 16,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.