From a1eeab58db02de46717ccebaf1eb83e314fa86ff Mon Sep 17 00:00:00 2001 From: Alex Chang Date: Wed, 12 Aug 2026 06:38:26 +0000 Subject: [PATCH] chore: remove Stainless attribution and infrastructure (#3599) ## Changes - Remove Stainless attribution from legacy generated-file headers, README/agent guidance, security reporting, and repository-owned examples. - Remove Stainless-only CI/upload infrastructure, obsolete mirror-specific workflow behavior, and legacy `.stats.yml`. - Keep Castiron generation metadata, public release workflows, and mock-server validation intact. ## Out of scope - Renaming `X-Stainless-*` request headers, retry/idempotency identifiers, OpenAPI `x-stainless-*` extensions, generated fixture identifiers, changelog history, or third-party provenance. --- .github/workflows/ci.yml | 68 +++---------------- .stats.yml | 4 -- AGENTS.md | 2 +- README.md | 2 +- SECURITY.md | 28 ++------ examples/.keep | 4 +- scripts/mock | 7 +- scripts/utils/upload-artifact.sh | 27 -------- src/openai/_constants.py | 2 - src/openai/_event_handler.py | 2 - src/openai/_exceptions.py | 2 - src/openai/_resource.py | 2 - src/openai/_send_queue.py | 2 - src/openai/_utils/_utils.py | 2 +- src/openai/_version.py | 2 - src/openai/lib/.keep | 4 +- src/openai/pagination.py | 2 - .../resources/beta/realtime/__init__.py | 2 - .../resources/beta/realtime/realtime.py | 2 - .../resources/beta/realtime/sessions.py | 2 - .../beta/realtime/transcription_sessions.py | 2 - src/openai/types/beta/chat/__init__.py | 2 - src/openai/types/beta/realtime/__init__.py | 2 - .../realtime/conversation_created_event.py | 2 - .../types/beta/realtime/conversation_item.py | 2 - .../realtime/conversation_item_content.py | 2 - .../conversation_item_content_param.py | 2 - .../conversation_item_create_event.py | 2 - .../conversation_item_create_event_param.py | 2 - .../conversation_item_created_event.py | 2 - .../conversation_item_delete_event.py | 2 - .../conversation_item_delete_event_param.py | 2 - .../conversation_item_deleted_event.py | 2 - ...put_audio_transcription_completed_event.py | 2 - ...m_input_audio_transcription_delta_event.py | 2 - ..._input_audio_transcription_failed_event.py | 2 - .../beta/realtime/conversation_item_param.py | 2 - .../conversation_item_retrieve_event.py | 2 - .../conversation_item_retrieve_event_param.py | 2 - .../conversation_item_truncate_event.py | 2 - .../conversation_item_truncate_event_param.py | 2 - .../conversation_item_truncated_event.py | 2 - .../conversation_item_with_reference.py | 2 - .../conversation_item_with_reference_param.py | 2 - src/openai/types/beta/realtime/error_event.py | 2 - .../input_audio_buffer_append_event.py | 2 - .../input_audio_buffer_append_event_param.py | 2 - .../input_audio_buffer_clear_event.py | 2 - .../input_audio_buffer_clear_event_param.py | 2 - .../input_audio_buffer_cleared_event.py | 2 - .../input_audio_buffer_commit_event.py | 2 - .../input_audio_buffer_commit_event_param.py | 2 - .../input_audio_buffer_committed_event.py | 2 - ...input_audio_buffer_speech_started_event.py | 2 - ...input_audio_buffer_speech_stopped_event.py | 2 - .../realtime/rate_limits_updated_event.py | 2 - .../beta/realtime/realtime_client_event.py | 2 - .../realtime/realtime_client_event_param.py | 2 - .../beta/realtime/realtime_connect_params.py | 2 - .../types/beta/realtime/realtime_response.py | 2 - .../beta/realtime/realtime_response_status.py | 2 - .../beta/realtime/realtime_response_usage.py | 2 - .../beta/realtime/realtime_server_event.py | 2 - .../realtime/response_audio_delta_event.py | 2 - .../realtime/response_audio_done_event.py | 2 - .../response_audio_transcript_delta_event.py | 2 - .../response_audio_transcript_done_event.py | 2 - .../beta/realtime/response_cancel_event.py | 2 - .../realtime/response_cancel_event_param.py | 2 - .../response_content_part_added_event.py | 2 - .../response_content_part_done_event.py | 2 - .../beta/realtime/response_create_event.py | 2 - .../realtime/response_create_event_param.py | 2 - .../beta/realtime/response_created_event.py | 2 - .../beta/realtime/response_done_event.py | 2 - ...nse_function_call_arguments_delta_event.py | 2 - ...onse_function_call_arguments_done_event.py | 2 - .../response_output_item_added_event.py | 2 - .../response_output_item_done_event.py | 2 - .../realtime/response_text_delta_event.py | 2 - .../beta/realtime/response_text_done_event.py | 2 - src/openai/types/beta/realtime/session.py | 2 - .../beta/realtime/session_create_params.py | 2 - .../beta/realtime/session_create_response.py | 2 - .../beta/realtime/session_created_event.py | 2 - .../beta/realtime/session_update_event.py | 2 - .../realtime/session_update_event_param.py | 2 - .../beta/realtime/session_updated_event.py | 2 - .../beta/realtime/transcription_session.py | 2 - .../transcription_session_create_params.py | 2 - .../realtime/transcription_session_update.py | 2 - .../transcription_session_update_param.py | 2 - .../transcription_session_updated_event.py | 2 - ...chat_completion_message_tool_call_param.py | 2 - .../types/chat/chat_completion_tool_param.py | 2 - .../types/chat/parsed_chat_completion.py | 2 - .../types/chat/parsed_function_tool_call.py | 2 - src/openai/types/responses/parsed_response.py | 2 - ...safety_identifier_blocked_webhook_event.py | 2 - tests/__init__.py | 1 - tests/api_resources/beta/test_realtime.py | 2 - tests/conftest.py | 2 - tests/test_client.py | 42 ++++++------ tests/test_module_client.py | 2 - tests/test_send_queue.py | 2 - tests/test_transform.py | 4 +- 106 files changed, 42 insertions(+), 339 deletions(-) delete mode 100644 .stats.yml delete mode 100755 scripts/utils/upload-artifact.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70a27d8ead..6783246815 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,15 +5,7 @@ on: - '**' - '!gh-readonly-queue/**' - '!integrated/**' - - '!stl-preview-head/**' - - '!stl-preview-base/**' - - '!generated' - - '!codegen/**' - - 'codegen/stl/**' pull_request: - branches-ignore: - - 'stl-preview-head/**' - - 'stl-preview-base/**' merge_group: types: - checks_requested @@ -30,8 +22,8 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} - if: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') + runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 @@ -48,12 +40,12 @@ jobs: run: ./scripts/lint build: - if: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') + if: github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork timeout-minutes: 10 name: build permissions: contents: read - runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: @@ -96,54 +88,10 @@ jobs: - name: Validate HTTPX2 wheel on Python 3.14 run: python scripts/utils/validate-httpx2-wheel.py - - name: Stage tarball for Stainless upload - if: |- - github.repository == 'stainless-sdks/openai-python' && - !startsWith(github.ref, 'refs/heads/stl/') - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: stainless-package-tarball - path: dist/ - if-no-files-found: error - retention-days: 1 - - stainless-upload: - name: upload tarball to Stainless - needs: build - if: github.repository == 'stainless-sdks/openai-python' && !startsWith(github.ref, 'refs/heads/stl/') - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - with: - persist-credentials: false - - - name: Download tarball - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: stainless-package-tarball - path: dist/ - - - name: Get GitHub OIDC Token - id: github-oidc - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 - with: - script: core.setOutput('github_token', await core.getIDToken()); - - - name: Upload tarball - env: - URL: https://pkg.stainless.com/s - AUTH: ${{ steps.github-oidc.outputs.github_token }} - SHA: ${{ github.sha }} - run: ./scripts/utils/upload-artifact.sh - test: timeout-minutes: 15 name: test (Python ${{ matrix.python-version }}) - runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ubuntu-latest if: github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork strategy: fail-fast: false @@ -185,7 +133,7 @@ jobs: test-httpx2: timeout-minutes: 20 name: test (HTTPX2) - runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ubuntu-latest if: github.event_name == 'push' || github.event_name == 'merge_group' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 @@ -223,8 +171,8 @@ jobs: timeout-minutes: 10 name: examples environment: ci - runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} - if: github.repository == 'openai/openai-python' && github.ref != 'refs/heads/release-please--branches--main' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') + runs-on: ubuntu-latest + if: github.repository == 'openai/openai-python' && github.ref != 'refs/heads/release-please--branches--main' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 diff --git a/.stats.yml b/.stats.yml deleted file mode 100644 index ec9ac4b5dd..0000000000 --- a/.stats.yml +++ /dev/null @@ -1,4 +0,0 @@ -configured_endpoints: 279 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-31fcc3c97e5c432754bf0b72c5d5abbe1493573f0ca888af914baf81188b453e.yml -openapi_spec_hash: f867849a0c2a9c9b838d21f1c720a9e3 -config_hash: fce3820c4f95b555e486349bc7d297d8 diff --git a/AGENTS.md b/AGENTS.md index 872a691604..4e5f885ebc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ ## Generated SDK -Most SDK source is generated by Stainless. Follow `CONTRIBUTING.md` before +Most SDK source is generated from the OpenAI API schema. Follow `CONTRIBUTING.md` before changing generated files. Handwritten policy, automation, tests, and examples should remain small and should not alter exported SDK APIs unless the change explicitly requires it. diff --git a/README.md b/README.md index a8b39edfa7..93f3071371 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The OpenAI Python library provides convenient access to the OpenAI REST API from application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by [HTTPX2](https://httpx2.pydantic.dev/). -It is generated from our [OpenAPI specification](https://github.com/openai/openai-openapi) with [Stainless](https://stainlessapi.com/). +It is generated from our [OpenAPI specification](https://github.com/openai/openai-openapi). ## Documentation diff --git a/SECURITY.md b/SECURITY.md index 4adb0c54f1..ece2734f01 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,28 +2,12 @@ ## Reporting Security Issues -This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken. - -To report a security issue, please contact the Stainless team at security@stainless.com. +Please report potential security vulnerabilities through OpenAI's +[coordinated vulnerability disclosure process](https://openai.com/policies/coordinated-vulnerability-disclosure-policy). +For questions about that process, contact disclosure@openai.com. ## Responsible Disclosure -We appreciate the efforts of security researchers and individuals who help us maintain the security of -SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible -disclosure practices by allowing us a reasonable amount of time to investigate and address the issue -before making any information public. - -## Reporting Non-SDK Related Security Issues - -If you encounter security issues that are not directly related to SDKs but pertain to the services -or products provided by OpenAI, please follow the respective company's security reporting guidelines. - -### OpenAI Terms and Policies - -Our Security Policy can be found at [Security Policy URL](https://openai.com/policies/coordinated-vulnerability-disclosure-policy). - -Please contact disclosure@openai.com for any questions or concerns regarding the security of our services. - ---- - -Thank you for helping us keep the SDKs and systems they interact with secure. +Please allow OpenAI a reasonable amount of time to investigate and address the +issue before making information public. Thank you for helping us keep this SDK +and the systems it interacts with secure. diff --git a/examples/.keep b/examples/.keep index d8c73e937a..713b98de13 100644 --- a/examples/.keep +++ b/examples/.keep @@ -1,4 +1,2 @@ -File generated from our OpenAPI spec by Stainless. - This directory can be used to store example files demonstrating usage of this SDK. -It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file +It is ignored by code generation and its content (other than this keep file) won't be touched. diff --git a/scripts/mock b/scripts/mock index efc647aec1..740f8afb20 100755 --- a/scripts/mock +++ b/scripts/mock @@ -17,12 +17,7 @@ elif [[ -f .castiron.stats.yml && -f api_reference/openapi.transformed.yml ]]; t exit 1 fi else - URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)" -fi - -# Check if the URL is empty -if [ -z "$URL" ]; then - echo "Error: No OpenAPI spec path/url provided or found in .stats.yml" + echo "Error: No OpenAPI spec path/url provided or found in Castiron generation metadata" >&2 exit 1 fi diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh deleted file mode 100755 index cd522975fc..0000000000 --- a/scripts/utils/upload-artifact.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash -set -exuo pipefail - -FILENAME=$(basename dist/*.whl) - -RESPONSE=$(curl -X POST "$URL?filename=$FILENAME" \ - -H "Authorization: Bearer $AUTH" \ - -H "Content-Type: application/json") - -SIGNED_URL=$(echo "$RESPONSE" | jq -r '.url') - -if [[ "$SIGNED_URL" == "null" ]]; then - echo -e "\033[31mFailed to get signed URL.\033[0m" - exit 1 -fi - -UPLOAD_RESPONSE=$(curl -v -X PUT \ - -H "Content-Type: binary/octet-stream" \ - --data-binary "@dist/$FILENAME" "$SIGNED_URL" 2>&1) - -if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then - echo -e "\033[32mUploaded build to Stainless storage.\033[0m" - echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/openai-python/$SHA/$FILENAME'\033[0m" -else - echo -e "\033[31mFailed to upload artifact.\033[0m" - exit 1 -fi diff --git a/src/openai/_constants.py b/src/openai/_constants.py index fa137439f1..19d2d6b020 100644 --- a/src/openai/_constants.py +++ b/src/openai/_constants.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - import httpx2 RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response" diff --git a/src/openai/_event_handler.py b/src/openai/_event_handler.py index d9a3a59d71..3aa6370b0a 100644 --- a/src/openai/_event_handler.py +++ b/src/openai/_event_handler.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import threading diff --git a/src/openai/_exceptions.py b/src/openai/_exceptions.py index b7be6a07e0..7a30e4a336 100644 --- a/src/openai/_exceptions.py +++ b/src/openai/_exceptions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import TYPE_CHECKING, Any, Optional, cast diff --git a/src/openai/_resource.py b/src/openai/_resource.py index fff9ba19c3..d1aecd5320 100644 --- a/src/openai/_resource.py +++ b/src/openai/_resource.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import time diff --git a/src/openai/_send_queue.py b/src/openai/_send_queue.py index b35d0fbcba..4961fc1426 100644 --- a/src/openai/_send_queue.py +++ b/src/openai/_send_queue.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import typing diff --git a/src/openai/_utils/_utils.py b/src/openai/_utils/_utils.py index 9f7401ca83..02046a352c 100644 --- a/src/openai/_utils/_utils.py +++ b/src/openai/_utils/_utils.py @@ -393,7 +393,7 @@ def get_required_header(headers: HeadersLike, header: str) -> str: if k.lower() == lower_header and isinstance(v, str): return v - # to deal with the case where the header looks like Stainless-Event-Id + # to deal with the case where the header looks like X-Request-Id intercaps_header = re.sub(r"([^\w])(\w)", lambda pat: pat.group(1) + pat.group(2).upper(), header.capitalize()) for normalized_header in [header, lower_header, header.upper(), intercaps_header]: diff --git a/src/openai/_version.py b/src/openai/_version.py index 8889c08af5..1e5a2b65a6 100644 --- a/src/openai/_version.py +++ b/src/openai/_version.py @@ -1,4 +1,2 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - __title__ = "openai" __version__ = "3.0.0" # x-release-please-version diff --git a/src/openai/lib/.keep b/src/openai/lib/.keep index 5e2c99fdbe..a51e020b40 100644 --- a/src/openai/lib/.keep +++ b/src/openai/lib/.keep @@ -1,4 +1,2 @@ -File generated from our OpenAPI spec by Stainless. - This directory can be used to store custom files to expand the SDK. -It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file +It is ignored by code generation and its content (other than this keep file) won't be touched. diff --git a/src/openai/pagination.py b/src/openai/pagination.py index 6cf0c8e7f5..8f13964cfe 100644 --- a/src/openai/pagination.py +++ b/src/openai/pagination.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Any, List, Generic, TypeVar, Optional, cast from typing_extensions import Protocol, override, runtime_checkable diff --git a/src/openai/resources/beta/realtime/__init__.py b/src/openai/resources/beta/realtime/__init__.py index 7ab3d9931c..40fa611482 100644 --- a/src/openai/resources/beta/realtime/__init__.py +++ b/src/openai/resources/beta/realtime/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from .realtime import ( Realtime, AsyncRealtime, diff --git a/src/openai/resources/beta/realtime/realtime.py b/src/openai/resources/beta/realtime/realtime.py index 6d1ef956ed..da08e7e2d6 100644 --- a/src/openai/resources/beta/realtime/realtime.py +++ b/src/openai/resources/beta/realtime/realtime.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import json diff --git a/src/openai/resources/beta/realtime/sessions.py b/src/openai/resources/beta/realtime/sessions.py index 50a38df7f8..c131a44ead 100644 --- a/src/openai/resources/beta/realtime/sessions.py +++ b/src/openai/resources/beta/realtime/sessions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import List, Union, Iterable diff --git a/src/openai/resources/beta/realtime/transcription_sessions.py b/src/openai/resources/beta/realtime/transcription_sessions.py index 5ba79c7172..04191ba66b 100644 --- a/src/openai/resources/beta/realtime/transcription_sessions.py +++ b/src/openai/resources/beta/realtime/transcription_sessions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import List diff --git a/src/openai/types/beta/chat/__init__.py b/src/openai/types/beta/chat/__init__.py index f8ee8b14b1..9d48db4f9f 100644 --- a/src/openai/types/beta/chat/__init__.py +++ b/src/openai/types/beta/chat/__init__.py @@ -1,3 +1 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations diff --git a/src/openai/types/beta/realtime/__init__.py b/src/openai/types/beta/realtime/__init__.py index 0374b9b457..7913aadcfe 100644 --- a/src/openai/types/beta/realtime/__init__.py +++ b/src/openai/types/beta/realtime/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from .session import Session as Session diff --git a/src/openai/types/beta/realtime/conversation_created_event.py b/src/openai/types/beta/realtime/conversation_created_event.py index 4ba0540867..e2061260eb 100644 --- a/src/openai/types/beta/realtime/conversation_created_event.py +++ b/src/openai/types/beta/realtime/conversation_created_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item.py b/src/openai/types/beta/realtime/conversation_item.py index 21b7a8ac1f..4cc60db284 100644 --- a/src/openai/types/beta/realtime/conversation_item.py +++ b/src/openai/types/beta/realtime/conversation_item.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_content.py b/src/openai/types/beta/realtime/conversation_item_content.py index fe9cef80e3..de2391a48c 100644 --- a/src/openai/types/beta/realtime/conversation_item_content.py +++ b/src/openai/types/beta/realtime/conversation_item_content.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_content_param.py b/src/openai/types/beta/realtime/conversation_item_content_param.py index 6042e7f90f..509697d725 100644 --- a/src/openai/types/beta/realtime/conversation_item_content_param.py +++ b/src/openai/types/beta/realtime/conversation_item_content_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, TypedDict diff --git a/src/openai/types/beta/realtime/conversation_item_create_event.py b/src/openai/types/beta/realtime/conversation_item_create_event.py index f19d552a92..6bdb7d47b6 100644 --- a/src/openai/types/beta/realtime/conversation_item_create_event.py +++ b/src/openai/types/beta/realtime/conversation_item_create_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_create_event_param.py b/src/openai/types/beta/realtime/conversation_item_create_event_param.py index 693d0fd54d..83c3a2908d 100644 --- a/src/openai/types/beta/realtime/conversation_item_create_event_param.py +++ b/src/openai/types/beta/realtime/conversation_item_create_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/openai/types/beta/realtime/conversation_item_created_event.py b/src/openai/types/beta/realtime/conversation_item_created_event.py index aea7ad5b4b..15426e7aae 100644 --- a/src/openai/types/beta/realtime/conversation_item_created_event.py +++ b/src/openai/types/beta/realtime/conversation_item_created_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_delete_event.py b/src/openai/types/beta/realtime/conversation_item_delete_event.py index 02ca8250ce..815512f32f 100644 --- a/src/openai/types/beta/realtime/conversation_item_delete_event.py +++ b/src/openai/types/beta/realtime/conversation_item_delete_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_delete_event_param.py b/src/openai/types/beta/realtime/conversation_item_delete_event_param.py index c3f88d6627..6e3cea0f61 100644 --- a/src/openai/types/beta/realtime/conversation_item_delete_event_param.py +++ b/src/openai/types/beta/realtime/conversation_item_delete_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/openai/types/beta/realtime/conversation_item_deleted_event.py b/src/openai/types/beta/realtime/conversation_item_deleted_event.py index a35a97817a..f0da6aa342 100644 --- a/src/openai/types/beta/realtime/conversation_item_deleted_event.py +++ b/src/openai/types/beta/realtime/conversation_item_deleted_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py b/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py index e7c457d4b2..0d0a9cf20c 100644 --- a/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py +++ b/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py @@ -1,5 +1,3 @@ -# 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 diff --git a/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py b/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py index 924d06d98a..75592cc42d 100644 --- a/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py +++ b/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py b/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py index cecac93e64..50772b7e42 100644 --- a/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py +++ b/src/openai/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_param.py b/src/openai/types/beta/realtime/conversation_item_param.py index 8bbd539c0c..4ae4ed1593 100644 --- a/src/openai/types/beta/realtime/conversation_item_param.py +++ b/src/openai/types/beta/realtime/conversation_item_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Iterable diff --git a/src/openai/types/beta/realtime/conversation_item_retrieve_event.py b/src/openai/types/beta/realtime/conversation_item_retrieve_event.py index 822386055c..eb8fb3a21c 100644 --- a/src/openai/types/beta/realtime/conversation_item_retrieve_event.py +++ b/src/openai/types/beta/realtime/conversation_item_retrieve_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_retrieve_event_param.py b/src/openai/types/beta/realtime/conversation_item_retrieve_event_param.py index 71b3ffa499..0a889b1fcf 100644 --- a/src/openai/types/beta/realtime/conversation_item_retrieve_event_param.py +++ b/src/openai/types/beta/realtime/conversation_item_retrieve_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/openai/types/beta/realtime/conversation_item_truncate_event.py b/src/openai/types/beta/realtime/conversation_item_truncate_event.py index cb336bba2c..ee25f51b64 100644 --- a/src/openai/types/beta/realtime/conversation_item_truncate_event.py +++ b/src/openai/types/beta/realtime/conversation_item_truncate_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_truncate_event_param.py b/src/openai/types/beta/realtime/conversation_item_truncate_event_param.py index d3ad1e1e25..fe65493451 100644 --- a/src/openai/types/beta/realtime/conversation_item_truncate_event_param.py +++ b/src/openai/types/beta/realtime/conversation_item_truncate_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/openai/types/beta/realtime/conversation_item_truncated_event.py b/src/openai/types/beta/realtime/conversation_item_truncated_event.py index 36368fa28f..50afa12e52 100644 --- a/src/openai/types/beta/realtime/conversation_item_truncated_event.py +++ b/src/openai/types/beta/realtime/conversation_item_truncated_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/conversation_item_with_reference.py b/src/openai/types/beta/realtime/conversation_item_with_reference.py index 0edcfc76b6..d1f4fe34e4 100644 --- a/src/openai/types/beta/realtime/conversation_item_with_reference.py +++ b/src/openai/types/beta/realtime/conversation_item_with_reference.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/conversation_item_with_reference_param.py b/src/openai/types/beta/realtime/conversation_item_with_reference_param.py index c83dc92ab7..426913f252 100644 --- a/src/openai/types/beta/realtime/conversation_item_with_reference_param.py +++ b/src/openai/types/beta/realtime/conversation_item_with_reference_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Iterable diff --git a/src/openai/types/beta/realtime/error_event.py b/src/openai/types/beta/realtime/error_event.py index e020fc3848..24385263ed 100644 --- a/src/openai/types/beta/realtime/error_event.py +++ b/src/openai/types/beta/realtime/error_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/input_audio_buffer_append_event.py b/src/openai/types/beta/realtime/input_audio_buffer_append_event.py index a253a6488c..9cfc359efe 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_append_event.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_append_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/input_audio_buffer_append_event_param.py b/src/openai/types/beta/realtime/input_audio_buffer_append_event_param.py index 3ad0bc737d..fc2065d77b 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_append_event_param.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_append_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/openai/types/beta/realtime/input_audio_buffer_clear_event.py b/src/openai/types/beta/realtime/input_audio_buffer_clear_event.py index b0624d34df..73a35d9d14 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_clear_event.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_clear_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/input_audio_buffer_clear_event_param.py b/src/openai/types/beta/realtime/input_audio_buffer_clear_event_param.py index 2bd6bc5a02..d7c0023781 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_clear_event_param.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_clear_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/openai/types/beta/realtime/input_audio_buffer_cleared_event.py b/src/openai/types/beta/realtime/input_audio_buffer_cleared_event.py index 632e1b94bc..6ef3ee1c21 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_cleared_event.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_cleared_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/input_audio_buffer_commit_event.py b/src/openai/types/beta/realtime/input_audio_buffer_commit_event.py index 7b6f5e46b7..17258b22ea 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_commit_event.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_commit_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/input_audio_buffer_commit_event_param.py b/src/openai/types/beta/realtime/input_audio_buffer_commit_event_param.py index c9c927ab98..88ceef7127 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_commit_event_param.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_commit_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/openai/types/beta/realtime/input_audio_buffer_committed_event.py b/src/openai/types/beta/realtime/input_audio_buffer_committed_event.py index 22eb53b117..d632964436 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_committed_event.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_committed_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/input_audio_buffer_speech_started_event.py b/src/openai/types/beta/realtime/input_audio_buffer_speech_started_event.py index 4f3ab082c4..ca85dd88a8 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_speech_started_event.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_speech_started_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/input_audio_buffer_speech_stopped_event.py b/src/openai/types/beta/realtime/input_audio_buffer_speech_stopped_event.py index 40568170f2..a3d48aa4b8 100644 --- a/src/openai/types/beta/realtime/input_audio_buffer_speech_stopped_event.py +++ b/src/openai/types/beta/realtime/input_audio_buffer_speech_stopped_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/rate_limits_updated_event.py b/src/openai/types/beta/realtime/rate_limits_updated_event.py index 7e12283c46..03516cb839 100644 --- a/src/openai/types/beta/realtime/rate_limits_updated_event.py +++ b/src/openai/types/beta/realtime/rate_limits_updated_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/realtime_client_event.py b/src/openai/types/beta/realtime/realtime_client_event.py index 5f4858d688..4cfbf24388 100644 --- a/src/openai/types/beta/realtime/realtime_client_event.py +++ b/src/openai/types/beta/realtime/realtime_client_event.py @@ -1,5 +1,3 @@ -# 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 diff --git a/src/openai/types/beta/realtime/realtime_client_event_param.py b/src/openai/types/beta/realtime/realtime_client_event_param.py index e7dfba241e..86aa3beb2a 100644 --- a/src/openai/types/beta/realtime/realtime_client_event_param.py +++ b/src/openai/types/beta/realtime/realtime_client_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union diff --git a/src/openai/types/beta/realtime/realtime_connect_params.py b/src/openai/types/beta/realtime/realtime_connect_params.py index 76474f3de4..aa21222942 100644 --- a/src/openai/types/beta/realtime/realtime_connect_params.py +++ b/src/openai/types/beta/realtime/realtime_connect_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/openai/types/beta/realtime/realtime_response.py b/src/openai/types/beta/realtime/realtime_response.py index ccc97c5d22..0b7e02ce58 100644 --- a/src/openai/types/beta/realtime/realtime_response.py +++ b/src/openai/types/beta/realtime/realtime_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Union, Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/realtime_response_status.py b/src/openai/types/beta/realtime/realtime_response_status.py index 7189cd58a1..c453b46588 100644 --- a/src/openai/types/beta/realtime/realtime_response_status.py +++ b/src/openai/types/beta/realtime/realtime_response_status.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/realtime_response_usage.py b/src/openai/types/beta/realtime/realtime_response_usage.py index 7ca822e25e..1e5ac7e721 100644 --- a/src/openai/types/beta/realtime/realtime_response_usage.py +++ b/src/openai/types/beta/realtime/realtime_response_usage.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/realtime_server_event.py b/src/openai/types/beta/realtime/realtime_server_event.py index c12f5df977..3a99a83cdc 100644 --- a/src/openai/types/beta/realtime/realtime_server_event.py +++ b/src/openai/types/beta/realtime/realtime_server_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Union from typing_extensions import Literal, Annotated, TypeAlias diff --git a/src/openai/types/beta/realtime/response_audio_delta_event.py b/src/openai/types/beta/realtime/response_audio_delta_event.py index 8e0128d942..c7531149a6 100644 --- a/src/openai/types/beta/realtime/response_audio_delta_event.py +++ b/src/openai/types/beta/realtime/response_audio_delta_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_audio_done_event.py b/src/openai/types/beta/realtime/response_audio_done_event.py index 68e78bc778..f4c05397a0 100644 --- a/src/openai/types/beta/realtime/response_audio_done_event.py +++ b/src/openai/types/beta/realtime/response_audio_done_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_audio_transcript_delta_event.py b/src/openai/types/beta/realtime/response_audio_transcript_delta_event.py index 3609948d10..f7331a3568 100644 --- a/src/openai/types/beta/realtime/response_audio_transcript_delta_event.py +++ b/src/openai/types/beta/realtime/response_audio_transcript_delta_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_audio_transcript_done_event.py b/src/openai/types/beta/realtime/response_audio_transcript_done_event.py index 4e4436a95f..d60ad73f36 100644 --- a/src/openai/types/beta/realtime/response_audio_transcript_done_event.py +++ b/src/openai/types/beta/realtime/response_audio_transcript_done_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_cancel_event.py b/src/openai/types/beta/realtime/response_cancel_event.py index c5ff991e9a..a6c6ed075e 100644 --- a/src/openai/types/beta/realtime/response_cancel_event.py +++ b/src/openai/types/beta/realtime/response_cancel_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/response_cancel_event_param.py b/src/openai/types/beta/realtime/response_cancel_event_param.py index f33740730a..6c7863b80d 100644 --- a/src/openai/types/beta/realtime/response_cancel_event_param.py +++ b/src/openai/types/beta/realtime/response_cancel_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/openai/types/beta/realtime/response_content_part_added_event.py b/src/openai/types/beta/realtime/response_content_part_added_event.py index 45c8f20f97..24286bec81 100644 --- a/src/openai/types/beta/realtime/response_content_part_added_event.py +++ b/src/openai/types/beta/realtime/response_content_part_added_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/response_content_part_done_event.py b/src/openai/types/beta/realtime/response_content_part_done_event.py index 3d16116106..de8beaf22b 100644 --- a/src/openai/types/beta/realtime/response_content_part_done_event.py +++ b/src/openai/types/beta/realtime/response_content_part_done_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/response_create_event.py b/src/openai/types/beta/realtime/response_create_event.py index 7219cedbf3..4216972a53 100644 --- a/src/openai/types/beta/realtime/response_create_event.py +++ b/src/openai/types/beta/realtime/response_create_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Union, Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/response_create_event_param.py b/src/openai/types/beta/realtime/response_create_event_param.py index b4d54bba92..6d43f928c1 100644 --- a/src/openai/types/beta/realtime/response_create_event_param.py +++ b/src/openai/types/beta/realtime/response_create_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import List, Union, Iterable, Optional diff --git a/src/openai/types/beta/realtime/response_created_event.py b/src/openai/types/beta/realtime/response_created_event.py index a4990cf095..b0a33e77e1 100644 --- a/src/openai/types/beta/realtime/response_created_event.py +++ b/src/openai/types/beta/realtime/response_created_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_done_event.py b/src/openai/types/beta/realtime/response_done_event.py index 9e655184b6..73771bf6f6 100644 --- a/src/openai/types/beta/realtime/response_done_event.py +++ b/src/openai/types/beta/realtime/response_done_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_function_call_arguments_delta_event.py b/src/openai/types/beta/realtime/response_function_call_arguments_delta_event.py index cdbb64e658..a5f364a0ff 100644 --- a/src/openai/types/beta/realtime/response_function_call_arguments_delta_event.py +++ b/src/openai/types/beta/realtime/response_function_call_arguments_delta_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_function_call_arguments_done_event.py b/src/openai/types/beta/realtime/response_function_call_arguments_done_event.py index 0a5db53323..03014ddba7 100644 --- a/src/openai/types/beta/realtime/response_function_call_arguments_done_event.py +++ b/src/openai/types/beta/realtime/response_function_call_arguments_done_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_output_item_added_event.py b/src/openai/types/beta/realtime/response_output_item_added_event.py index c89bfdc3be..d5fd1ccb24 100644 --- a/src/openai/types/beta/realtime/response_output_item_added_event.py +++ b/src/openai/types/beta/realtime/response_output_item_added_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_output_item_done_event.py b/src/openai/types/beta/realtime/response_output_item_done_event.py index b5910e22aa..4f9fbd45cc 100644 --- a/src/openai/types/beta/realtime/response_output_item_done_event.py +++ b/src/openai/types/beta/realtime/response_output_item_done_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_text_delta_event.py b/src/openai/types/beta/realtime/response_text_delta_event.py index c463b3c3d0..f61dcc8b6b 100644 --- a/src/openai/types/beta/realtime/response_text_delta_event.py +++ b/src/openai/types/beta/realtime/response_text_delta_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/response_text_done_event.py b/src/openai/types/beta/realtime/response_text_done_event.py index 020ff41d58..5b85e40803 100644 --- a/src/openai/types/beta/realtime/response_text_done_event.py +++ b/src/openai/types/beta/realtime/response_text_done_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/beta/realtime/session.py b/src/openai/types/beta/realtime/session.py index 2e099a2e98..2694e87dd6 100644 --- a/src/openai/types/beta/realtime/session.py +++ b/src/openai/types/beta/realtime/session.py @@ -1,5 +1,3 @@ -# 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 diff --git a/src/openai/types/beta/realtime/session_create_params.py b/src/openai/types/beta/realtime/session_create_params.py index 38465a56c3..5c1e5baf6d 100644 --- a/src/openai/types/beta/realtime/session_create_params.py +++ b/src/openai/types/beta/realtime/session_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import List, Union, Iterable diff --git a/src/openai/types/beta/realtime/session_create_response.py b/src/openai/types/beta/realtime/session_create_response.py index 471da03691..a777d80727 100644 --- a/src/openai/types/beta/realtime/session_create_response.py +++ b/src/openai/types/beta/realtime/session_create_response.py @@ -1,5 +1,3 @@ -# 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 diff --git a/src/openai/types/beta/realtime/session_created_event.py b/src/openai/types/beta/realtime/session_created_event.py index baf6af388b..395626f11f 100644 --- a/src/openai/types/beta/realtime/session_created_event.py +++ b/src/openai/types/beta/realtime/session_created_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from .session import Session diff --git a/src/openai/types/beta/realtime/session_update_event.py b/src/openai/types/beta/realtime/session_update_event.py index 78d2e4bb18..251517fb4d 100644 --- a/src/openai/types/beta/realtime/session_update_event.py +++ b/src/openai/types/beta/realtime/session_update_event.py @@ -1,5 +1,3 @@ -# 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 diff --git a/src/openai/types/beta/realtime/session_update_event_param.py b/src/openai/types/beta/realtime/session_update_event_param.py index c58b202a71..3186592609 100644 --- a/src/openai/types/beta/realtime/session_update_event_param.py +++ b/src/openai/types/beta/realtime/session_update_event_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import List, Union, Iterable diff --git a/src/openai/types/beta/realtime/session_updated_event.py b/src/openai/types/beta/realtime/session_updated_event.py index b9b6488eb3..d03876b112 100644 --- a/src/openai/types/beta/realtime/session_updated_event.py +++ b/src/openai/types/beta/realtime/session_updated_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from .session import Session diff --git a/src/openai/types/beta/realtime/transcription_session.py b/src/openai/types/beta/realtime/transcription_session.py index 7c7abf37b6..8c4a6d09a2 100644 --- a/src/openai/types/beta/realtime/transcription_session.py +++ b/src/openai/types/beta/realtime/transcription_session.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/transcription_session_create_params.py b/src/openai/types/beta/realtime/transcription_session_create_params.py index 3ac3af4fa9..5573ab20b4 100644 --- a/src/openai/types/beta/realtime/transcription_session_create_params.py +++ b/src/openai/types/beta/realtime/transcription_session_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import List diff --git a/src/openai/types/beta/realtime/transcription_session_update.py b/src/openai/types/beta/realtime/transcription_session_update.py index 5ae1ad226d..3fe30330ec 100644 --- a/src/openai/types/beta/realtime/transcription_session_update.py +++ b/src/openai/types/beta/realtime/transcription_session_update.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from typing_extensions import Literal diff --git a/src/openai/types/beta/realtime/transcription_session_update_param.py b/src/openai/types/beta/realtime/transcription_session_update_param.py index d7065f61c7..aa8719ab9a 100644 --- a/src/openai/types/beta/realtime/transcription_session_update_param.py +++ b/src/openai/types/beta/realtime/transcription_session_update_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import List diff --git a/src/openai/types/beta/realtime/transcription_session_updated_event.py b/src/openai/types/beta/realtime/transcription_session_updated_event.py index 1f1fbdae14..5028ed2d17 100644 --- a/src/openai/types/beta/realtime/transcription_session_updated_event.py +++ b/src/openai/types/beta/realtime/transcription_session_updated_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from ...._models import BaseModel diff --git a/src/openai/types/chat/chat_completion_message_tool_call_param.py b/src/openai/types/chat/chat_completion_message_tool_call_param.py index 6baa1b57ab..fedf615f4d 100644 --- a/src/openai/types/chat/chat_completion_message_tool_call_param.py +++ b/src/openai/types/chat/chat_completion_message_tool_call_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import TypeAlias diff --git a/src/openai/types/chat/chat_completion_tool_param.py b/src/openai/types/chat/chat_completion_tool_param.py index a18b13b471..9f0abf2867 100644 --- a/src/openai/types/chat/chat_completion_tool_param.py +++ b/src/openai/types/chat/chat_completion_tool_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import TypeAlias diff --git a/src/openai/types/chat/parsed_chat_completion.py b/src/openai/types/chat/parsed_chat_completion.py index 4b11dac5a0..ba7dc78d21 100644 --- a/src/openai/types/chat/parsed_chat_completion.py +++ b/src/openai/types/chat/parsed_chat_completion.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Generic, TypeVar, Optional from ..._models import GenericModel diff --git a/src/openai/types/chat/parsed_function_tool_call.py b/src/openai/types/chat/parsed_function_tool_call.py index e06b3546cb..9c31b0f627 100644 --- a/src/openai/types/chat/parsed_function_tool_call.py +++ b/src/openai/types/chat/parsed_function_tool_call.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from .chat_completion_message_function_tool_call import Function, ChatCompletionMessageFunctionToolCall diff --git a/src/openai/types/responses/parsed_response.py b/src/openai/types/responses/parsed_response.py index 7e62ff6139..d0977fa23a 100644 --- a/src/openai/types/responses/parsed_response.py +++ b/src/openai/types/responses/parsed_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import TYPE_CHECKING, List, Union, Generic, TypeVar, Optional from typing_extensions import Annotated, TypeAlias diff --git a/src/openai/types/webhooks/safety_identifier_blocked_webhook_event.py b/src/openai/types/webhooks/safety_identifier_blocked_webhook_event.py index 04472727ac..b908ad445d 100644 --- a/src/openai/types/webhooks/safety_identifier_blocked_webhook_event.py +++ b/src/openai/types/webhooks/safety_identifier_blocked_webhook_event.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/tests/__init__.py b/tests/__init__.py index fd8019a9a1..e69de29bb2 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/beta/test_realtime.py b/tests/api_resources/beta/test_realtime.py index 8f752a0fd3..96146dfa51 100644 --- a/tests/api_resources/beta/test_realtime.py +++ b/tests/api_resources/beta/test_realtime.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os diff --git a/tests/conftest.py b/tests/conftest.py index ff3671cb0c..c02deeae23 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os diff --git a/tests/test_client.py b/tests/test_client.py index 092050987d..79a66098fa 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import gc @@ -188,13 +186,13 @@ def test_copy_default_headers(self) -> None: assert copied.default_headers["X-Foo"] == "bar" # merges already given headers - copied = client.copy(default_headers={"X-Bar": "stainless"}) + copied = client.copy(default_headers={"X-Bar": "openai"}) assert copied.default_headers["X-Foo"] == "bar" - assert copied.default_headers["X-Bar"] == "stainless" + assert copied.default_headers["X-Bar"] == "openai" # uses new values for any already given headers - copied = client.copy(default_headers={"X-Foo": "stainless"}) - assert copied.default_headers["X-Foo"] == "stainless" + copied = client.copy(default_headers={"X-Foo": "openai"}) + assert copied.default_headers["X-Foo"] == "openai" # set_default_headers @@ -227,14 +225,14 @@ def test_copy_default_query(self) -> None: assert _get_params(copied)["foo"] == "bar" # merges already given params - copied = client.copy(default_query={"bar": "stainless"}) + copied = client.copy(default_query={"bar": "openai"}) params = _get_params(copied) assert params["foo"] == "bar" - assert params["bar"] == "stainless" + assert params["bar"] == "openai" # uses new values for any already given headers - copied = client.copy(default_query={"foo": "stainless"}) - assert _get_params(copied)["foo"] == "stainless" + copied = client.copy(default_query={"foo": "openai"}) + assert _get_params(copied)["foo"] == "openai" # set_default_query @@ -435,12 +433,12 @@ def test_default_headers_option(self) -> None: admin_api_key=admin_api_key, _strict_response_validation=True, default_headers={ - "X-Foo": "stainless", + "X-Foo": "openai", "X-Stainless-Lang": "my-overriding-header", }, ) request = test_client2._build_request(FinalRequestOptions(method="get", url="/foo")) - assert request.headers.get("x-foo") == "stainless" + assert request.headers.get("x-foo") == "openai" assert request.headers.get("x-stainless-lang") == "my-overriding-header" test_client.close() @@ -1502,13 +1500,13 @@ async def test_copy_default_headers(self) -> None: assert copied.default_headers["X-Foo"] == "bar" # merges already given headers - copied = client.copy(default_headers={"X-Bar": "stainless"}) + copied = client.copy(default_headers={"X-Bar": "openai"}) assert copied.default_headers["X-Foo"] == "bar" - assert copied.default_headers["X-Bar"] == "stainless" + assert copied.default_headers["X-Bar"] == "openai" # uses new values for any already given headers - copied = client.copy(default_headers={"X-Foo": "stainless"}) - assert copied.default_headers["X-Foo"] == "stainless" + copied = client.copy(default_headers={"X-Foo": "openai"}) + assert copied.default_headers["X-Foo"] == "openai" # set_default_headers @@ -1541,14 +1539,14 @@ async def test_copy_default_query(self) -> None: assert _get_params(copied)["foo"] == "bar" # merges already given params - copied = client.copy(default_query={"bar": "stainless"}) + copied = client.copy(default_query={"bar": "openai"}) params = _get_params(copied) assert params["foo"] == "bar" - assert params["bar"] == "stainless" + assert params["bar"] == "openai" # uses new values for any already given headers - copied = client.copy(default_query={"foo": "stainless"}) - assert _get_params(copied)["foo"] == "stainless" + copied = client.copy(default_query={"foo": "openai"}) + assert _get_params(copied)["foo"] == "openai" # set_default_query @@ -1751,12 +1749,12 @@ async def test_default_headers_option(self) -> None: admin_api_key=admin_api_key, _strict_response_validation=True, default_headers={ - "X-Foo": "stainless", + "X-Foo": "openai", "X-Stainless-Lang": "my-overriding-header", }, ) request = test_client2._build_request(FinalRequestOptions(method="get", url="/foo")) - assert request.headers.get("x-foo") == "stainless" + assert request.headers.get("x-foo") == "openai" assert request.headers.get("x-stainless-lang") == "my-overriding-header" await test_client.close() diff --git a/tests/test_module_client.py b/tests/test_module_client.py index ff099d5056..e35a4ad901 100644 --- a/tests/test_module_client.py +++ b/tests/test_module_client.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os as _os diff --git a/tests/test_send_queue.py b/tests/test_send_queue.py index 61db916bc4..f3fe996c33 100644 --- a/tests/test_send_queue.py +++ b/tests/test_send_queue.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import pytest diff --git a/tests/test_transform.py b/tests/test_transform.py index bece75dfc7..5af84df7fd 100644 --- a/tests/test_transform.py +++ b/tests/test_transform.py @@ -324,9 +324,9 @@ class ModelNestedObjects(BaseModel): @parametrize @pytest.mark.asyncio async def test_pydantic_nested_objects(use_async: bool) -> None: - model = ModelNestedObjects.construct(nested={"foo": "stainless"}) + model = ModelNestedObjects.construct(nested={"foo": "openai"}) assert isinstance(model.nested, MyModel) - assert cast(Any, await transform(model, Any, use_async)) == {"nested": {"foo": "stainless"}} + assert cast(Any, await transform(model, Any, use_async)) == {"nested": {"foo": "openai"}} class ModelWithDefaultField(BaseModel):