sample_id stringlengths 21 196 | text stringlengths 105 936k | metadata dict | category stringclasses 6
values |
|---|---|---|---|
openai/openai-python:src/openai/types/responses/response_local_environment.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["ResponseLocalEnvironment"]
class ResponseLocalEnvironment(BaseModel):
"""Represents the use of a local environment to perform shell actions.""... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_local_environment.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/responses/skill_reference.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__ = ["SkillReference"]
class SkillReference(BaseModel):
skill_id: str
"""The ID of the referenced skill."""
typ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/skill_reference.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/responses/skill_reference_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__ = ["SkillReferenceParam"]
class SkillReferenceParam(TypedDict, total=False):
skill_id: Required[str]
"""The ID of the r... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/skill_reference_param.py",
"license": "Apache License 2.0",
"lines": 11,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/skill.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from .._models import BaseModel
__all__ = ["Skill"]
class Skill(BaseModel):
id: str
"""Unique identifier for the skill."""
created_at: int
"""Unix timestamp (seconds) for whe... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skill.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/skill_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 TypedDict
from .._types import FileTypes, SequenceNotStr
__all__ = ["SkillCreateParams"]
class SkillCreateParams(TypedDict, total=False):
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skill_create_params.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/skill_list.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 .skill import Skill
from .._models import BaseModel
__all__ = ["SkillList"]
class SkillList(BaseModel):
data: List[Skill]
"""A list of items"""
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skill_list.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/skill_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__ = ["SkillListParams"]
class SkillListParams(TypedDict, total=False):
after: str
"""Identifier for the last item from the previous... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skill_list_params.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/types/skill_update_params.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import Required, TypedDict
__all__ = ["SkillUpdateParams"]
class SkillUpdateParams(TypedDict, total=False):
default_version: Required[str]
"""The skill version num... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skill_update_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/skills/deleted_skill_version.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["DeletedSkillVersion"]
class DeletedSkillVersion(BaseModel):
id: str
deleted: bool
object: Literal["skill.version.deleted"]
vers... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skills/deleted_skill_version.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/skills/skill_version.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["SkillVersion"]
class SkillVersion(BaseModel):
id: str
"""Unique identifier for the skill version."""
created_at: int
"""Unix time... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skills/skill_version.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/skills/skill_version_list.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 .skill_version import SkillVersion
__all__ = ["SkillVersionList"]
class SkillVersionList(BaseModel):
data: List[Ski... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skills/skill_version_list.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/skills/version_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 TypedDict
from ..._types import FileTypes, SequenceNotStr
__all__ = ["VersionCreateParams"]
class VersionCreateParams(TypedDict, total=Fal... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skills/version_create_params.py",
"license": "Apache License 2.0",
"lines": 11,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/skills/version_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__ = ["VersionListParams"]
class VersionListParams(TypedDict, total=False):
after: str
"""The skill version ID to start after."""
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/skills/version_list_params.py",
"license": "Apache License 2.0",
"lines": 11,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:tests/api_resources/skills/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/skills/test_content.py",
"license": "Apache License 2.0",
"lines": 96,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:tests/api_resources/skills/test_versions.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/skills/test_versions.py",
"license": "Apache License 2.0",
"lines": 334,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:tests/api_resources/skills/versions/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/skills/versions/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/test_skills.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 Skill, DeletedSkill
from openai.pa... | {
"repo_id": "openai/openai-python",
"file_path": "tests/api_resources/test_skills.py",
"license": "Apache License 2.0",
"lines": 314,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:src/openai/_utils/_json.py | import json
from typing import Any
from datetime import datetime
from typing_extensions import override
import pydantic
from .._compat import model_dump
def openapi_dumps(obj: Any) -> bytes:
"""
Serialize an object to UTF-8 encoded JSON bytes.
Extends the standard json.dumps with support for additional... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/_utils/_json.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:tests/test_utils/test_json.py | from __future__ import annotations
import datetime
from typing import Union
import pydantic
from openai import _compat
from openai._utils._json import openapi_dumps
class TestOpenapiDumps:
def test_basic(self) -> None:
data = {"key": "value", "number": 42}
json_bytes = openapi_dumps(data)
... | {
"repo_id": "openai/openai-python",
"file_path": "tests/test_utils/test_json.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/video_model_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
__all__ = ["VideoModelParam"]
VideoModelParam: TypeAlias = Union[
str, Literal["sora-2", "sora-2-pro", "sora-2-2025-1... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video_model_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/graders/grader_inputs.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 ..responses.response_input_text import ResponseInputText
from ..responses.response_input_audio import Re... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/graders/grader_inputs.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/types/graders/grader_inputs_param.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import List, Union
from typing_extensions import Literal, Required, TypeAlias, TypedDict
from ..responses.response_input_text_param import ResponseInputTextParam
from ..responses.respo... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/graders/grader_inputs_param.py",
"license": "Apache License 2.0",
"lines": 36,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/realtime/input_audio_buffer_dtmf_event_received_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__ = ["InputAudioBufferDtmfEventReceivedEvent"]
class InputAudioBufferDtmfEventReceivedEvent(BaseModel):
"""**SIP Only:** Returned when an DTMF event... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/input_audio_buffer_dtmf_event_received_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/responses/compacted_response.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List
from typing_extensions import Literal
from ..._models import BaseModel
from .response_usage import ResponseUsage
from .response_output_item import ResponseOutputItem
__all__ = ["CompactedResponse"]
class C... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/compacted_response.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_compact_params.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, TypedDict
from .response_input_item_param import ResponseInputItemParam
__all__ = ["ResponseCompactPa... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_compact_params.py",
"license": "Apache License 2.0",
"lines": 124,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/responses/response_compaction_item.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__ = ["ResponseCompactionItem"]
class ResponseCompactionItem(BaseModel):
"""
A compaction item generated by the [`v1/... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_compaction_item.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/responses/response_compaction_item_param.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__ = ["ResponseCompactionItemParam"]
class ResponseCompactionItemParam(BaseModel):
"""
A compaction item generated by... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_compaction_item_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/responses/response_compaction_item_param_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__ = ["ResponseCompactionItemParamParam"]
class ResponseCompactionItemParamParam(TypedDict, total=Fals... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_compaction_item_param_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/responses/apply_patch_tool.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["ApplyPatchTool"]
class ApplyPatchTool(BaseModel):
"""Allows the assistant to create, delete, or update files using unified diffs."""
type... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/apply_patch_tool.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/responses/apply_patch_tool_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__ = ["ApplyPatchToolParam"]
class ApplyPatchToolParam(TypedDict, total=False):
"""Allows the assistant to create, delete, or ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/apply_patch_tool_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/responses/function_shell_tool.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
from .container_auto import ContainerAuto
from .local_environment imp... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/function_shell_tool.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/function_shell_tool_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
from .container_auto_param import ContainerAutoParam
from .local_environment_param import L... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/function_shell_tool_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:src/openai/types/responses/response_apply_patch_tool_call.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__ = [
"ResponseApplyPatchToolCall",
"Operation",
"... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_apply_patch_tool_call.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/responses/response_apply_patch_tool_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__ = ["ResponseApplyPatchToolCallOutput"]
class ResponseApplyPatchToolCallOutput(BaseModel):
"""The output emitted by an ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_apply_patch_tool_call_output.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_function_shell_call_output_content.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__ = ["ResponseFunctionShellCallOutputContent", "Outcome", "OutcomeTimeou... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_function_shell_call_output_content.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_function_shell_call_output_content_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, Required, TypeAlias, TypedDict
__all__ = ["ResponseFunctionShellCallOutputContentParam", "Outcome", "OutcomeTimeout", "OutcomeExit"]... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_function_shell_call_output_content_param.py",
"license": "Apache License 2.0",
"lines": 24,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template":... | function_simple |
openai/openai-python:src/openai/types/responses/response_function_shell_tool_call.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_local_environment import ResponseLocalEnvironmen... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_function_shell_tool_call.py",
"license": "Apache License 2.0",
"lines": 38,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/responses/response_function_shell_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
__all__ = [
"ResponseFunctionShellToolCallOutput",
"Ou... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_function_shell_tool_call_output.py",
"license": "Apache License 2.0",
"lines": 58,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/responses/tool_choice_apply_patch.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["ToolChoiceApplyPatch"]
class ToolChoiceApplyPatch(BaseModel):
"""Forces the model to call the apply_patch tool when executing a tool call."""
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/tool_choice_apply_patch.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/responses/tool_choice_apply_patch_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__ = ["ToolChoiceApplyPatchParam"]
class ToolChoiceApplyPatchParam(TypedDict, total=False):
"""Forces the model to call the ap... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/tool_choice_apply_patch_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/responses/tool_choice_shell.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["ToolChoiceShell"]
class ToolChoiceShell(BaseModel):
"""Forces the model to call the shell tool when a tool call is required."""
type: Lit... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/tool_choice_shell.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/responses/tool_choice_shell_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__ = ["ToolChoiceShellParam"]
class ToolChoiceShellParam(TypedDict, total=False):
"""Forces the model to call the shell tool w... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/tool_choice_shell_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:examples/responses_input_tokens.py | from typing import List
from openai import OpenAI
from openai.types.responses.tool_param import ToolParam
from openai.types.responses.response_input_item_param import ResponseInputItemParam
def main() -> None:
client = OpenAI()
tools: List[ToolParam] = [
{
"type": "function",
... | {
"repo_id": "openai/openai-python",
"file_path": "examples/responses_input_tokens.py",
"license": "Apache License 2.0",
"lines": 47,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/resources/responses/input_tokens.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
import httpx
from ... import _legacy_response
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/resources/responses/input_tokens.py",
"license": "Apache License 2.0",
"lines": 248,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/responses/input_token_count_params.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, TypeAlias, TypedDict
from .tool_param import ToolParam
from .tool_choice_options import ToolChoiceOptions
from .... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/input_token_count_params.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/responses/input_token_count_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__ = ["InputTokenCountResponse"]
class InputTokenCountResponse(BaseModel):
input_tokens: int
object: Literal["response.input_tokens"]
| {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/input_token_count_response.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:tests/api_resources/responses/test_input_tokens.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.responses import InputTokenCountResponse
... | {
"repo_id": "openai/openai-python",
"file_path": "tests/api_resources/responses/test_input_tokens.py",
"license": "Apache License 2.0",
"lines": 115,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:src/openai/types/audio/transcription_diarized.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 .transcription_diarized_segment import TranscriptionDiariz... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/audio/transcription_diarized.py",
"license": "Apache License 2.0",
"lines": 46,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/audio/transcription_diarized_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__ = ["TranscriptionDiarizedSegment"]
class TranscriptionDiarizedSegment(BaseModel):
"""A segment of diarized transcript text with speaker metadata."... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/audio/transcription_diarized_segment.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/audio/transcription_text_segment_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__ = ["TranscriptionTextSegmentEvent"]
class TranscriptionTextSegmentEvent(BaseModel):
"""
Emitted when a diarized transcription returns a comple... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/audio/transcription_text_segment_event.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:examples/video.py | #!/usr/bin/env -S poetry run python
import asyncio
from openai import AsyncOpenAI
client = AsyncOpenAI()
async def main() -> None:
video = await client.videos.create_and_poll(
model="sora-2",
prompt="A video of the words 'Thank you' in sparkling letters",
)
if video.status == "complete... | {
"repo_id": "openai/openai-python",
"file_path": "examples/video.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/resources/beta/chatkit/chatkit.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from .threads import (
Threads,
AsyncThreads,
ThreadsWithRawResponse,
AsyncThreadsWithRawResponse,
ThreadsWithStreamingResponse,
AsyncThreadsWithStreamingResponse,
)
from .s... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/resources/beta/chatkit/chatkit.py",
"license": "Apache License 2.0",
"lines": 101,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/resources/beta/chatkit/sessions.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/beta/chatkit/sessions.py",
"license": "Apache License 2.0",
"lines": 247,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
openai/openai-python:src/openai/resources/beta/chatkit/threads.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import Any, cast
from typing_extensions import Literal
import httpx
from .... import _legacy_response
from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
from... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/resources/beta/chatkit/threads.py",
"license": "Apache License 2.0",
"lines": 436,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
openai/openai-python:src/openai/resources/videos.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import TYPE_CHECKING, Mapping, cast
from typing_extensions import Literal, assert_never
import httpx
from .. import _legacy_response
from ..types import (
VideoSize,
VideoSeco... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/resources/videos.py",
"license": "Apache License 2.0",
"lines": 729,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
openai/openai-python:src/openai/types/beta/chatkit/chat_session.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ...._models import BaseModel
from ..chatkit_workflow import ChatKitWorkflow
from .chat_session_status import ChatSessionStatus
from .chat_session_rate_limits import ChatSessionRateLimits
fr... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session.py",
"license": "Apache License 2.0",
"lines": 30,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/beta/chatkit/chat_session_automatic_thread_titling.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from ...._models import BaseModel
__all__ = ["ChatSessionAutomaticThreadTitling"]
class ChatSessionAutomaticThreadTitling(BaseModel):
"""Automatic thread title preferences for the session."""
enabled: bool
"""Whether ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_automatic_thread_titling.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/beta/chatkit/chat_session_chatkit_configuration.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from ...._models import BaseModel
from .chat_session_history import ChatSessionHistory
from .chat_session_file_upload import ChatSessionFileUpload
from .chat_session_automatic_thread_titling import ChatSessionAutomaticThreadTitling
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_chatkit_configuration.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/beta/chatkit/chat_session_chatkit_configuration_param.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import TypedDict
__all__ = ["ChatSessionChatKitConfigurationParam", "AutomaticThreadTitling", "FileUpload", "History"]
class AutomaticThreadTitling(TypedDict, total=False)... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_chatkit_configuration_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/beta/chatkit/chat_session_expires_after_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__ = ["ChatSessionExpiresAfterParam"]
class ChatSessionExpiresAfterParam(TypedDict, total=False):
"""Controls when the session... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_expires_after_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/beta/chatkit/chat_session_file_upload.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from ...._models import BaseModel
__all__ = ["ChatSessionFileUpload"]
class ChatSessionFileUpload(BaseModel):
"""Upload permissions and limits applied to the session."""
enabled: bool
"""I... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_file_upload.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/beta/chatkit/chat_session_history.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from ...._models import BaseModel
__all__ = ["ChatSessionHistory"]
class ChatSessionHistory(BaseModel):
"""History retention preferences returned for the session."""
enabled: bool
"""Indic... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_history.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:src/openai/types/beta/chatkit/chat_session_rate_limits.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from ...._models import BaseModel
__all__ = ["ChatSessionRateLimits"]
class ChatSessionRateLimits(BaseModel):
"""Active per-minute request limit for the session."""
max_requests_per_1_minute: int
"""Maximum allowed re... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_rate_limits.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/beta/chatkit/chat_session_rate_limits_param.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import TypedDict
__all__ = ["ChatSessionRateLimitsParam"]
class ChatSessionRateLimitsParam(TypedDict, total=False):
"""Controls request rate limits for the session."""... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_rate_limits_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/beta/chatkit/chat_session_workflow_param.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import Dict, Union
from typing_extensions import Required, TypedDict
__all__ = ["ChatSessionWorkflowParam", "Tracing"]
class Tracing(TypedDict, total=False):
"""Optional tracing ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chat_session_workflow_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/beta/chatkit/chatkit_attachment.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__ = ["ChatKitAttachment"]
class ChatKitAttachment(BaseModel):
"""Attachment metadata included on thread items."""
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chatkit_attachment.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/beta/chatkit/chatkit_response_output_text.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Union
from typing_extensions import Literal, Annotated, TypeAlias
from ...._utils import PropertyInfo
from ...._models import BaseModel
__all__ = [
"ChatKitResponseOutputText",
"Annotation",
"An... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chatkit_response_output_text.py",
"license": "Apache License 2.0",
"lines": 46,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/beta/chatkit/chatkit_thread.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__ = ["ChatKitThread", "Status", "StatusActive", "StatusLocke... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chatkit_thread.py",
"license": "Apache License 2.0",
"lines": 39,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/beta/chatkit/chatkit_thread_assistant_message_item.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List
from typing_extensions import Literal
from ...._models import BaseModel
from .chatkit_response_output_text import ChatKitResponseOutputText
__all__ = ["ChatKitThreadAssistantMessageItem"]
class ChatKitThre... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chatkit_thread_assistant_message_item.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/beta/chatkit/chatkit_thread_item_list.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 .chatkit_widget_item import ChatKitWidgetItem
from .chat... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chatkit_thread_item_list.py",
"license": "Apache License 2.0",
"lines": 105,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/beta/chatkit/chatkit_thread_user_message_item.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 .chatkit_attachment import ChatKitAttachment
__all__ = ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chatkit_thread_user_message_item.py",
"license": "Apache License 2.0",
"lines": 56,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/beta/chatkit/chatkit_widget_item.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import Literal
from ...._models import BaseModel
__all__ = ["ChatKitWidgetItem"]
class ChatKitWidgetItem(BaseModel):
"""Thread item that renders a widget payload."""
id: str
"""Identifier of th... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/chatkit_widget_item.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/beta/chatkit/session_create_params.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import Required, TypedDict
from .chat_session_workflow_param import ChatSessionWorkflowParam
from .chat_session_rate_limits_param import ChatSessionRateLimitsParam
from .cha... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/session_create_params.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/beta/chatkit/thread_delete_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__ = ["ThreadDeleteResponse"]
class ThreadDeleteResponse(BaseModel):
"""Confirmation payload returned after deleting a thread."""
id: str
"... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/thread_delete_response.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/beta/chatkit/thread_list_items_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__ = ["ThreadListItemsParams"]
class ThreadListItemsParams(TypedDict, total=False):
after: str
"""List items created after this thre... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/thread_list_items_params.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/beta/chatkit/thread_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__ = ["ThreadListParams"]
class ThreadListParams(TypedDict, total=False):
after: str
"""List items created after this thread item ID... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit/thread_list_params.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/beta/chatkit_workflow.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Dict, Union, Optional
from ..._models import BaseModel
__all__ = ["ChatKitWorkflow", "Tracing"]
class Tracing(BaseModel):
"""Tracing settings applied to the workflow."""
enabled: bool
"""Indicates ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/beta/chatkit_workflow.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/video.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 .video_size import VideoSize
from .video_model import VideoModel
from .video_seconds import VideoSeconds
from .video_create_error... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video.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:src/openai/types/video_create_error.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .._models import BaseModel
__all__ = ["VideoCreateError"]
class VideoCreateError(BaseModel):
"""An error that occurred while generating the response."""
code: str
"""A machine-readable error code that was returne... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video_create_error.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/video_create_params.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import Required, TypedDict
from .._types import FileTypes
from .video_size import VideoSize
from .video_seconds import VideoSeconds
from .video_model_param import VideoModel... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video_create_params.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/video_delete_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__ = ["VideoDeleteResponse"]
class VideoDeleteResponse(BaseModel):
"""Confirmation payload returned after deleting a video."""
id: str
"""Ide... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video_delete_response.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/video_download_content_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__ = ["VideoDownloadContentParams"]
class VideoDownloadContentParams(TypedDict, total=False):
variant: Literal["video", "thumbnail", "sp... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video_download_content_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/video_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__ = ["VideoListParams"]
class VideoListParams(TypedDict, total=False):
after: str
"""Identifier for the last item from the previous... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video_list_params.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/types/video_model.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Union
from typing_extensions import Literal, TypeAlias
__all__ = ["VideoModel"]
VideoModel: TypeAlias = Union[
str, Literal["sora-2", "sora-2-pro", "sora-2-2025-10-06", "sora-2-pro-2025-10-06", "sora-2-2025-1... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video_model.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/video_remix_params.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import Required, TypedDict
__all__ = ["VideoRemixParams"]
class VideoRemixParams(TypedDict, total=False):
prompt: Required[str]
"""Updated text prompt that directs... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/video_remix_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:tests/api_resources/beta/chatkit/test_sessions.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.beta.chatkit import (
ChatSession,
)
... | {
"repo_id": "openai/openai-python",
"file_path": "tests/api_resources/beta/chatkit/test_sessions.py",
"license": "Apache License 2.0",
"lines": 193,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:tests/api_resources/beta/chatkit/test_threads.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 SyncConversationCursorPage, A... | {
"repo_id": "openai/openai-python",
"file_path": "tests/api_resources/beta/chatkit/test_threads.py",
"license": "Apache License 2.0",
"lines": 281,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:tests/api_resources/test_videos.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/test_videos.py",
"license": "Apache License 2.0",
"lines": 450,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:src/openai/lib/_realtime.py | from __future__ import annotations
import json
from typing_extensions import override
import httpx
from openai import _legacy_response
from openai._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
from openai._utils import maybe_transform, async_maybe_transform
from openai._base_client import make_... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/lib/_realtime.py",
"license": "Apache License 2.0",
"lines": 82,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/resources/realtime/calls.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import List, Union, Optional
from typing_extensions import Literal
import httpx
from ... import _legacy_response
from ..._types import Body, Omit, Query, Headers, NoneType, NotGiven, ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/resources/realtime/calls.py",
"license": "Apache License 2.0",
"lines": 661,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
openai/openai-python:src/openai/types/realtime/call_accept_params.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import List, Union, Optional
from typing_extensions import Literal, Required, TypedDict
from .realtime_truncation_param import RealtimeTruncationParam
from .realtime_audio_config_param... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/call_accept_params.py",
"license": "Apache License 2.0",
"lines": 105,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | documentation |
openai/openai-python:src/openai/types/realtime/call_create_params.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import Required, TypedDict
from .realtime_session_create_request_param import RealtimeSessionCreateRequestParam
__all__ = ["CallCreateParams"]
class CallCreateParams(Type... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/call_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/realtime/call_refer_params.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import Required, TypedDict
__all__ = ["CallReferParams"]
class CallReferParams(TypedDict, total=False):
target_uri: Required[str]
"""URI that should appear in the ... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/call_refer_params.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/realtime/call_reject_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__ = ["CallRejectParams"]
class CallRejectParams(TypedDict, total=False):
status_code: int
"""SIP response code to send back to the caller.
... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/realtime/call_reject_params.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:tests/api_resources/realtime/test_calls.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/realtime/test_calls.py",
"license": "Apache License 2.0",
"lines": 606,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
openai/openai-python:src/openai/types/batch_usage.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .._models import BaseModel
__all__ = ["BatchUsage", "InputTokensDetails", "OutputTokensDetails"]
class InputTokensDetails(BaseModel):
"""A detailed breakdown of the input tokens."""
cached_tokens: int
"""The numb... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/batch_usage.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/responses/response_function_call_output_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 .response_input_file_content import ResponseInputFileContent
from .response_input_text_content import ResponseInputT... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_function_call_output_item.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/responses/response_function_call_output_item_list.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List
from typing_extensions import TypeAlias
from .response_function_call_output_item import ResponseFunctionCallOutputItem
__all__ = ["ResponseFunctionCallOutputItemList"]
ResponseFunctionCallOutputItemList: Ty... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_function_call_output_item_list.py",
"license": "Apache License 2.0",
"lines": 6,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
openai/openai-python:src/openai/types/responses/response_function_call_output_item_list_param.py | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import List, Union
from typing_extensions import TypeAlias
from .response_input_file_content_param import ResponseInputFileContentParam
from .response_input_text_content_param import R... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_function_call_output_item_list_param.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/responses/response_function_call_output_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 .response_input_file_content_param import ResponseInputFileContentParam
from .response_input_text_content_param import Respons... | {
"repo_id": "openai/openai-python",
"file_path": "src/openai/types/responses/response_function_call_output_item_param.py",
"license": "Apache License 2.0",
"lines": 11,
"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.