repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_api/files.py
src/openai/cli/_api/files.py
from __future__ import annotations from typing import TYPE_CHECKING, Any, cast from argparse import ArgumentParser from .._utils import get_client, print_model from .._models import BaseModel from .._progress import BufferReader if TYPE_CHECKING: from argparse import _SubParsersAction def register(subparser: _...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_api/__init__.py
src/openai/cli/_api/__init__.py
from ._main import register_commands as register_commands
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_api/completions.py
src/openai/cli/_api/completions.py
from __future__ import annotations import sys from typing import TYPE_CHECKING, Optional, cast from argparse import ArgumentParser from functools import partial from openai.types.completion import Completion from .._utils import get_client from ..._types import Omittable, omit from ..._utils import is_given from .._...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_api/chat/__init__.py
src/openai/cli/_api/chat/__init__.py
from __future__ import annotations from typing import TYPE_CHECKING from argparse import ArgumentParser from . import completions if TYPE_CHECKING: from argparse import _SubParsersAction def register(subparser: _SubParsersAction[ArgumentParser]) -> None: completions.register(subparser)
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_api/chat/completions.py
src/openai/cli/_api/chat/completions.py
from __future__ import annotations import sys from typing import TYPE_CHECKING, List, Optional, cast from argparse import ArgumentParser from typing_extensions import Literal, NamedTuple from ..._utils import get_client from ..._models import BaseModel from ...._streaming import Stream from ....types.chat import ( ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_api/fine_tuning/jobs.py
src/openai/cli/_api/fine_tuning/jobs.py
from __future__ import annotations import json from typing import TYPE_CHECKING from argparse import ArgumentParser from ..._utils import get_client, print_model from ...._types import Omittable, omit from ...._utils import is_given from ..._models import BaseModel from ....pagination import SyncCursorPage from ....t...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_api/fine_tuning/__init__.py
src/openai/cli/_api/fine_tuning/__init__.py
from __future__ import annotations from typing import TYPE_CHECKING from argparse import ArgumentParser from . import jobs if TYPE_CHECKING: from argparse import _SubParsersAction def register(subparser: _SubParsersAction[ArgumentParser]) -> None: jobs.register(subparser)
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_tools/migrate.py
src/openai/cli/_tools/migrate.py
from __future__ import annotations import os import sys import shutil import tarfile import platform import subprocess from typing import TYPE_CHECKING, List from pathlib import Path from argparse import ArgumentParser import httpx from .._errors import CLIError, SilentCLIError from .._models import BaseModel if TY...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_tools/_main.py
src/openai/cli/_tools/_main.py
from __future__ import annotations from typing import TYPE_CHECKING from argparse import ArgumentParser from . import migrate, fine_tunes if TYPE_CHECKING: from argparse import _SubParsersAction def register_commands(parser: ArgumentParser, subparser: _SubParsersAction[ArgumentParser]) -> None: migrate.reg...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_tools/__init__.py
src/openai/cli/_tools/__init__.py
from ._main import register_commands as register_commands
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/cli/_tools/fine_tunes.py
src/openai/cli/_tools/fine_tunes.py
from __future__ import annotations import sys from typing import TYPE_CHECKING from argparse import ArgumentParser from .._models import BaseModel from ...lib._validators import ( get_validators, write_out_file, read_any_format, apply_validators, apply_necessary_remediation, ) if TYPE_CHECKING: ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/_extras/numpy_proxy.py
src/openai/_extras/numpy_proxy.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from typing_extensions import override from .._utils import LazyProxy from ._common import MissingDependencyError, format_instructions if TYPE_CHECKING: import numpy as numpy NUMPY_INSTRUCTIONS = format_instructions(library="numpy", extra...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/_extras/_common.py
src/openai/_extras/_common.py
from .._exceptions import OpenAIError INSTRUCTIONS = """ OpenAI error: missing `{library}` This feature requires additional dependencies: $ pip install openai[{extra}] """ def format_instructions(*, library: str, extra: str) -> str: return INSTRUCTIONS.format(library=library, extra=extra) class Mi...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/_extras/pandas_proxy.py
src/openai/_extras/pandas_proxy.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from typing_extensions import override from .._utils import LazyProxy from ._common import MissingDependencyError, format_instructions if TYPE_CHECKING: import pandas as pandas PANDAS_INSTRUCTIONS = format_instructions(library="pandas", e...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/_extras/__init__.py
src/openai/_extras/__init__.py
from .numpy_proxy import numpy as numpy, has_numpy as has_numpy from .pandas_proxy import pandas as pandas from .sounddevice_proxy import sounddevice as sounddevice
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/_extras/sounddevice_proxy.py
src/openai/_extras/sounddevice_proxy.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from typing_extensions import override from .._utils import LazyProxy from ._common import MissingDependencyError, format_instructions if TYPE_CHECKING: import sounddevice as sounddevice # type: ignore SOUNDDEVICE_INSTRUCTIONS = format_i...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/webhooks.py
src/openai/resources/webhooks.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import hmac import json import time import base64 import hashlib from typing import cast from .._types import HeadersLike from .._utils import get_required_header from .._models import construct_t...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/models.py
src/openai/resources/models.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import httpx from .. import _legacy_response from .._types import Body, Query, Headers, NotGiven, not_given from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIR...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/batches.py
src/openai/resources/batches.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 import httpx from .. import _legacy_response from ..types import batch_list_params, batch_create_params from .._types import Body...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/moderations.py
src/openai/resources/moderations.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union, Iterable import httpx from .. import _legacy_response from ..types import moderation_create_params from .._types import Body, Omit, Query, Headers, NotGiven, SequenceNot...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/files.py
src/openai/resources/files.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import time import typing_extensions from typing import Mapping, cast from typing_extensions import Literal import httpx from .. import _legacy_response from ..types import FilePurpose, file_list...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/__init__.py
src/openai/resources/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .beta import ( Beta, AsyncBeta, BetaWithRawResponse, AsyncBetaWithRawResponse, BetaWithStreamingResponse, AsyncBetaWithStreamingResponse, ) from .chat import ( Chat, AsyncChat, ChatWithRawResp...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/images.py
src/openai/resources/images.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union, Mapping, Optional, cast from typing_extensions import Literal, overload import httpx from .. import _legacy_response from ..types import image_edit_params, image_generat...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/embeddings.py
src/openai/resources/embeddings.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import array import base64 from typing import Union, Iterable, cast from typing_extensions import Literal import httpx from .. import _legacy_response from ..types import embedding_create_params ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/completions.py
src/openai/resources/completions.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Dict, Union, Iterable, Optional from typing_extensions import Literal, overload import httpx from .. import _legacy_response from ..types import completion_create_params from ....
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/videos.py
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...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/chat/chat.py
src/openai/resources/chat/chat.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from .completions.completions import ( Completions, AsyncCompletions, CompletionsWithRa...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/chat/__init__.py
src/openai/resources/chat/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .chat import ( Chat, AsyncChat, ChatWithRawResponse, AsyncChatWithRawResponse, ChatWithStreamingResponse, AsyncChatWithStreamingResponse, ) from .completions import ( Completions, AsyncCompletions...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/chat/completions/__init__.py
src/openai/resources/chat/completions/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .messages import ( Messages, AsyncMessages, MessagesWithRawResponse, AsyncMessagesWithRawResponse, MessagesWithStreamingResponse, AsyncMessagesWithStreamingResponse, ) from .completions import ( Compl...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/chat/completions/messages.py
src/openai/resources/chat/completions/messages.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal import httpx from .... import _legacy_response from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ...._utils import maybe_tran...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/chat/completions/completions.py
src/openai/resources/chat/completions/completions.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import inspect from typing import Dict, List, Type, Union, Iterable, Optional, cast from functools import partial from typing_extensions import Literal, overload import httpx import pydantic from...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/evals/evals.py
src/openai/resources/evals/evals.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Iterable, Optional from typing_extensions import Literal import httpx from ... import _legacy_response from ...types import eval_list_params, eval_create_params, eval_update_pa...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/evals/__init__.py
src/openai/resources/evals/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .runs import ( Runs, AsyncRuns, RunsWithRawResponse, AsyncRunsWithRawResponse, RunsWithStreamingResponse, AsyncRunsWithStreamingResponse, ) from .evals import ( Evals, AsyncEvals, EvalsWithRaw...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/evals/runs/runs.py
src/openai/resources/evals/runs/runs.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 import httpx from .... import _legacy_response from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/evals/runs/__init__.py
src/openai/resources/evals/runs/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .runs import ( Runs, AsyncRuns, RunsWithRawResponse, AsyncRunsWithRawResponse, RunsWithStreamingResponse, AsyncRunsWithStreamingResponse, ) from .output_items import ( OutputItems, AsyncOutputItem...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/evals/runs/output_items.py
src/openai/resources/evals/runs/output_items.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal import httpx from .... import _legacy_response from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ...._utils import maybe_tran...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/beta.py
src/openai/resources/beta/beta.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from ..._compat import cached_property from .assistants import ( Assistants, AsyncAssistants, AssistantsWithRawResponse, AsyncAssistantsWithRawResponse, AssistantsWithStreamingR...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/assistants.py
src/openai/resources/beta/assistants.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, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/__init__.py
src/openai/resources/beta/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .beta import ( Beta, AsyncBeta, BetaWithRawResponse, AsyncBetaWithRawResponse, BetaWithStreamingResponse, AsyncBetaWithStreamingResponse, ) from .chatkit import ( ChatKit, AsyncChatKit, ChatKi...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/threads/threads.py
src/openai/resources/beta/threads/threads.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import typing_extensions from typing import Union, Iterable, Optional from functools import partial from typing_extensions import Literal, overload import httpx from .... import _legacy_response ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/threads/__init__.py
src/openai/resources/beta/threads/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .runs import ( Runs, AsyncRuns, RunsWithRawResponse, AsyncRunsWithRawResponse, RunsWithStreamingResponse, AsyncRunsWithStreamingResponse, ) from .threads import ( Threads, AsyncThreads, Thread...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/threads/messages.py
src/openai/resources/beta/threads/messages.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import typing_extensions from typing import Union, Iterable, Optional from typing_extensions import Literal import httpx from .... import _legacy_response from ...._types import Body, Omit, Query...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/threads/runs/steps.py
src/openai/resources/beta/threads/runs/steps.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import typing_extensions from typing import List from typing_extensions import Literal import httpx from ..... import _legacy_response from ....._types import Body, Omit, Query, Headers, NotGiven...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/threads/runs/runs.py
src/openai/resources/beta/threads/runs/runs.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import typing_extensions from typing import List, Union, Iterable, Optional from functools import partial from typing_extensions import Literal, overload import httpx from ..... import _legacy_re...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/threads/runs/__init__.py
src/openai/resources/beta/threads/runs/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .runs import ( Runs, AsyncRuns, RunsWithRawResponse, AsyncRunsWithRawResponse, RunsWithStreamingResponse, AsyncRunsWithStreamingResponse, ) from .steps import ( Steps, AsyncSteps, StepsWithRaw...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/chatkit/threads.py
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...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/chatkit/__init__.py
src/openai/resources/beta/chatkit/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .chatkit import ( ChatKit, AsyncChatKit, ChatKitWithRawResponse, AsyncChatKitWithRawResponse, ChatKitWithStreamingResponse, AsyncChatKitWithStreamingResponse, ) from .threads import ( Threads, Asy...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/chatkit/sessions.py
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 ...._...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/chatkit/chatkit.py
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...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/realtime/__init__.py
src/openai/resources/beta/realtime/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .realtime import ( Realtime, AsyncRealtime, RealtimeWithRawResponse, AsyncRealtimeWithRawResponse, RealtimeWithStreamingResponse, AsyncRealtimeWithStreamingResponse, ) from .sessions import ( Sessions...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/realtime/transcription_sessions.py
src/openai/resources/beta/realtime/transcription_sessions.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import List from typing_extensions import Literal import httpx from .... import _legacy_response from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils impor...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/realtime/sessions.py
src/openai/resources/beta/realtime/sessions.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import List, Union, Iterable from typing_extensions import Literal import httpx from .... import _legacy_response from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/beta/realtime/realtime.py
src/openai/resources/beta/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...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/audio/audio.py
src/openai/resources/audio/audio.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from .speech import ( Speech, AsyncSpeech, SpeechWithRawResponse, AsyncSpeechWithRawResponse, SpeechWithStreamingResponse, AsyncSpeechWithStreamingResponse, ) from ..._compa...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/audio/transcriptions.py
src/openai/resources/audio/transcriptions.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import logging from typing import TYPE_CHECKING, List, Union, Mapping, Optional, cast from typing_extensions import Literal, overload, assert_never import httpx from ... import _legacy_response f...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/audio/translations.py
src/openai/resources/audio/translations.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import logging from typing import TYPE_CHECKING, Union, Mapping, cast from typing_extensions import Literal, overload, assert_never import httpx from ... import _legacy_response from ..._types im...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/audio/__init__.py
src/openai/resources/audio/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .audio import ( Audio, AsyncAudio, AudioWithRawResponse, AsyncAudioWithRawResponse, AudioWithStreamingResponse, AsyncAudioWithStreamingResponse, ) from .speech import ( Speech, AsyncSpeech, Sp...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/audio/speech.py
src/openai/resources/audio/speech.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 import httpx from ... import _legacy_response from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._u...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/uploads/uploads.py
src/openai/resources/uploads/uploads.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import io import os import logging import builtins from typing import overload from pathlib import Path import anyio import httpx from ... import _legacy_response from .parts import ( Parts, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/uploads/__init__.py
src/openai/resources/uploads/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .parts import ( Parts, AsyncParts, PartsWithRawResponse, AsyncPartsWithRawResponse, PartsWithStreamingResponse, AsyncPartsWithStreamingResponse, ) from .uploads import ( Uploads, AsyncUploads, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/uploads/parts.py
src/openai/resources/uploads/parts.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Mapping, cast import httpx from ... import _legacy_response from ..._types import Body, Query, Headers, NotGiven, FileTypes, not_given from ..._utils import extract_files, mayb...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/__init__.py
src/openai/resources/fine_tuning/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .jobs import ( Jobs, AsyncJobs, JobsWithRawResponse, AsyncJobsWithRawResponse, JobsWithStreamingResponse, AsyncJobsWithStreamingResponse, ) from .alpha import ( Alpha, AsyncAlpha, AlphaWithRaw...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/fine_tuning.py
src/openai/resources/fine_tuning/fine_tuning.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from ..._compat import cached_property from .jobs.jobs import ( Jobs, AsyncJobs, JobsWithRawResponse, AsyncJobsWithRawResponse, JobsWithStreamingResponse, AsyncJobsWithStrea...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/jobs/checkpoints.py
src/openai/resources/fine_tuning/jobs/checkpoints.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 from ...._compat import cached_pr...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/jobs/jobs.py
src/openai/resources/fine_tuning/jobs/jobs.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Dict, Union, Iterable, Optional from typing_extensions import Literal import httpx from .... import _legacy_response from ...._types import Body, Omit, Query, Headers, NotGiven...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/jobs/__init__.py
src/openai/resources/fine_tuning/jobs/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .jobs import ( Jobs, AsyncJobs, JobsWithRawResponse, AsyncJobsWithRawResponse, JobsWithStreamingResponse, AsyncJobsWithStreamingResponse, ) from .checkpoints import ( Checkpoints, AsyncCheckpoints...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/checkpoints/checkpoints.py
src/openai/resources/fine_tuning/checkpoints/checkpoints.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from ...._compat import cached_property from .permissions import ( Permissions, AsyncPermissions, PermissionsWithRawResponse, AsyncPermissionsWithRawResponse, PermissionsWithStr...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/checkpoints/permissions.py
src/openai/resources/fine_tuning/checkpoints/permissions.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal import httpx from .... import _legacy_response from ...._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given from ...._utils i...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/checkpoints/__init__.py
src/openai/resources/fine_tuning/checkpoints/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .checkpoints import ( Checkpoints, AsyncCheckpoints, CheckpointsWithRawResponse, AsyncCheckpointsWithRawResponse, CheckpointsWithStreamingResponse, AsyncCheckpointsWithStreamingResponse, ) from .permissio...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/alpha/graders.py
src/openai/resources/fine_tuning/alpha/graders.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import httpx from .... import _legacy_response from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ...._utils import maybe_transform, async_maybe_transform from ...._...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/alpha/alpha.py
src/openai/resources/fine_tuning/alpha/alpha.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from .graders import ( Graders, AsyncGraders, GradersWithRawResponse, AsyncGradersWithRawResponse, GradersWithStreamingResponse, AsyncGradersWithStreamingResponse, ) from .....
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/fine_tuning/alpha/__init__.py
src/openai/resources/fine_tuning/alpha/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .alpha import ( Alpha, AsyncAlpha, AlphaWithRawResponse, AsyncAlphaWithRawResponse, AlphaWithStreamingResponse, AsyncAlphaWithStreamingResponse, ) from .graders import ( Graders, AsyncGraders, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/conversations/conversations.py
src/openai/resources/conversations/conversations.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Iterable, Optional import httpx from ... import _legacy_response from .items import ( Items, AsyncItems, ItemsWithRawResponse, AsyncItemsWithRawResponse, It...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/conversations/items.py
src/openai/resources/conversations/items.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Any, List, Iterable, cast from typing_extensions import Literal import httpx from ... import _legacy_response from ..._types import Body, Omit, Query, Headers, NotGiven, omit, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/conversations/__init__.py
src/openai/resources/conversations/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .items import ( Items, AsyncItems, ItemsWithRawResponse, AsyncItemsWithRawResponse, ItemsWithStreamingResponse, AsyncItemsWithStreamingResponse, ) from .conversations import ( Conversations, Async...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/vector_stores/vector_stores.py
src/openai/resources/vector_stores/vector_stores.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 import httpx from ... import _legacy_response from .files import ( Files, AsyncFiles, FilesWithRawResponse, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/vector_stores/files.py
src/openai/resources/vector_stores/files.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import TYPE_CHECKING, Dict, Union, Optional from typing_extensions import Literal, assert_never import httpx from ... import _legacy_response from ...types import FileChunkingStrategy...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/vector_stores/__init__.py
src/openai/resources/vector_stores/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .files import ( Files, AsyncFiles, FilesWithRawResponse, AsyncFilesWithRawResponse, FilesWithStreamingResponse, AsyncFilesWithStreamingResponse, ) from .file_batches import ( FileBatches, AsyncFil...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/vector_stores/file_batches.py
src/openai/resources/vector_stores/file_batches.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import asyncio from typing import Dict, Iterable, Optional from typing_extensions import Union, Literal from concurrent.futures import Future, ThreadPoolExecutor, as_completed import httpx import ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/containers/containers.py
src/openai/resources/containers/containers.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal import httpx from ... import _legacy_response from ...types import container_list_params, container_create_params from ..._types import Body, Omit, Query, He...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/containers/__init__.py
src/openai/resources/containers/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .files import ( Files, AsyncFiles, FilesWithRawResponse, AsyncFilesWithRawResponse, FilesWithStreamingResponse, AsyncFilesWithStreamingResponse, ) from .containers import ( Containers, AsyncContai...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/containers/files/files.py
src/openai/resources/containers/files/files.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Mapping, cast from typing_extensions import Literal import httpx from .... import _legacy_response from .content import ( Content, AsyncContent, ContentWithRawRespo...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/containers/files/__init__.py
src/openai/resources/containers/files/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .files import ( Files, AsyncFiles, FilesWithRawResponse, AsyncFilesWithRawResponse, FilesWithStreamingResponse, AsyncFilesWithStreamingResponse, ) from .content import ( Content, AsyncContent, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/containers/files/content.py
src/openai/resources/containers/files/content.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import httpx from .... import _legacy_response from ...._types import Body, Query, Headers, NotGiven, not_given from ...._compat import cached_property from ...._resource import SyncAPIResource, A...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/realtime/client_secrets.py
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...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/realtime/__init__.py
src/openai/resources/realtime/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .calls import ( Calls, AsyncCalls, CallsWithRawResponse, AsyncCallsWithRawResponse, CallsWithStreamingResponse, AsyncCallsWithStreamingResponse, ) from .realtime import ( Realtime, AsyncRealtime, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/realtime/realtime.py
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...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/realtime/calls.py
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, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/responses/input_items.py
src/openai/resources/responses/input_items.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Any, List, cast from typing_extensions import Literal import httpx from ... import _legacy_response from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/responses/input_tokens.py
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, ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/responses/__init__.py
src/openai/resources/responses/__init__.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .responses import ( Responses, AsyncResponses, ResponsesWithRawResponse, AsyncResponsesWithRawResponse, ResponsesWithStreamingResponse, AsyncResponsesWithStreamingResponse, ) from .input_items import ( ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/src/openai/resources/responses/responses.py
src/openai/resources/responses/responses.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from copy import copy from typing import Any, List, Type, Union, Iterable, Optional, cast from functools import partial from typing_extensions import Literal, overload import httpx from ... impor...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
true
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/tests/test_files.py
tests/test_files.py
from pathlib import Path import anyio import pytest from dirty_equals import IsDict, IsList, IsBytes, IsTuple from openai._files import to_httpx_files, async_to_httpx_files readme_path = Path(__file__).parent.parent.joinpath("README.md") def test_pathlib_includes_file_name() -> None: result = to_httpx_files({"...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/tests/test_extract_files.py
tests/test_extract_files.py
from __future__ import annotations from typing import Sequence import pytest from openai._types import FileTypes from openai._utils import extract_files def test_removes_files_from_input() -> None: query = {"foo": "bar"} assert extract_files(query, paths=[]) == [] assert query == {"foo": "bar"} qu...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/tests/test_qs.py
tests/test_qs.py
from typing import Any, cast from functools import partial from urllib.parse import unquote import pytest from openai._qs import Querystring, stringify def test_empty() -> None: assert stringify({}) == "" assert stringify({"a": {}}) == "" assert stringify({"a": {"b": {"c": {}}}}) == "" def test_basic(...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/tests/test_required_args.py
tests/test_required_args.py
from __future__ import annotations import pytest from openai._utils import required_args def test_too_many_positional_params() -> None: @required_args(["a"]) def foo(a: str | None = None) -> str | None: return a with pytest.raises(TypeError, match=r"foo\(\) takes 1 argument\(s\) but 2 were give...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/tests/test_streaming.py
tests/test_streaming.py
from __future__ import annotations from typing import Iterator, AsyncIterator import httpx import pytest from openai import OpenAI, AsyncOpenAI from openai._streaming import Stream, AsyncStream, ServerSentEvent @pytest.mark.asyncio @pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"]) async def te...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/tests/test_deepcopy.py
tests/test_deepcopy.py
from openai._utils import deepcopy_minimal def assert_different_identities(obj1: object, obj2: object) -> None: assert obj1 == obj2 assert id(obj1) != id(obj2) def test_simple_dict() -> None: obj1 = {"foo": "bar"} obj2 = deepcopy_minimal(obj1) assert_different_identities(obj1, obj2) def test_n...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/tests/test_module_client.py
tests/test_module_client.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os as _os import httpx import pytest from httpx import URL import openai from openai import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES def reset_state() -> None: openai._reset_client() ...
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false
openai/openai-python
https://github.com/openai/openai-python/blob/d3e632171c7842abf97b26379f564531d80ad096/tests/test_legacy_response.py
tests/test_legacy_response.py
import json from typing import Any, Union, cast from typing_extensions import Annotated import httpx import pytest import pydantic from openai import OpenAI, BaseModel from openai._streaming import Stream from openai._base_client import FinalRequestOptions from openai._legacy_response import LegacyAPIResponse from ....
python
Apache-2.0
d3e632171c7842abf97b26379f564531d80ad096
2026-01-04T14:43:29.641198Z
false