-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Comparing changes
Open a pull request
base repository: openai/openai-python
base: main
head repository: aimlapi/aimlapi-sdk-python
compare: main
- 18 commits
- 1,016 files changed
- 3 contributors
Commits on Nov 25, 2025
-
Configuration menu - View commit details
-
Copy full SHA for ff4558b - Browse repository at this point
Copy the full SHA ff4558bView commit details -
feat: AIMLAPI module defaults and chat overrides
Improve AIMLAPI module defaults and chat overrides Set Azure default base URL
Configuration menu - View commit details
-
Copy full SHA for 6cf9ad4 - Browse repository at this point
Copy the full SHA 6cf9ad4View commit details -
fix: Enhance completion logic for AI/ML API
Allow dict chat stream payloads Default chat completions stream flag Allow chat parse dict messages
Configuration menu - View commit details
-
Copy full SHA for 1a21530 - Browse repository at this point
Copy the full SHA 1a21530View commit details -
Migrate examples from OpenAI to AIMLAPI
Replaced all OpenAI imports and usage with AIMLAPI equivalents across example scripts, updated model names and endpoints, and refactored code to match AIMLAPI's API. Also removed obsolete enums and improved streaming/image handling logic. Deleted the unused responses_input_tokens.py example.
Configuration menu - View commit details
-
Copy full SHA for 09136c5 - Browse repository at this point
Copy the full SHA 09136c5View commit details -
feat: Handle AIMLAPI audio STT/TTS overrides
Handle streamed binary response in TTS payload Adds a short-circuit to return StreamedBinaryAPIResponse directly in _finalize_sync_tts_payload, improving handling of streamed audio responses. Also adds a debug print statement in _coerce_mapping for error cases. Handle AsyncStreamedBinaryAPIResponse in TTS payload Adds a short-circuit to return the payload directly if it is an instance of AsyncStreamedBinaryAPIResponse in the _finalize_async_tts_payload function. This prevents unnecessary processing for streamed binary responses. Add AIML audio STT/TTS overrides
Configuration menu - View commit details
-
Copy full SHA for 3e929e6 - Browse repository at this point
Copy the full SHA 3e929e6View commit details -
Migrate examples from OpenAI to AIMLAPI
Replaces all OpenAI imports and usage with AIMLAPI equivalents across example scripts. Updates model names, API key environment variables, and endpoint usage to match AIMLAPI conventions. Adjusts audio, Azure, and streaming examples for compatibility with AIMLAPI, and removes or comments out unsupported features. Remove realtime audio example files Deleted the examples/realtime directory including audio_util.py, azure_realtime.py, push_to_talk_app.py, and realtime.py. Updated background.py to use AIMLAPI instead of OpenAI. This streamlines the examples and updates the response client usage.
Configuration menu - View commit details
-
Copy full SHA for 3046948 - Browse repository at this point
Copy the full SHA 3046948View commit details -
Introduce comprehensive tests for AIMLAPI client covering chat, completions, embeddings, error handling, image generation and editing, responses (basic, background, streaming), structured tool output, TTS, and chunked uploads. These tests use pytest and respx to mock HTTP interactions and validate request/response payloads and client behavior.
Configuration menu - View commit details
-
Copy full SHA for 78308e3 - Browse repository at this point
Copy the full SHA 78308e3View commit details -
Disable audio translations and improve audio payload extraction
Audio translations are now explicitly unsupported in AIMLAPI, raising NotImplementedError with guidance for alternatives. Audio payload extraction logic in speech.py is enhanced to better handle various audio field formats and URLs, improving robustness and compatibility.
Configuration menu - View commit details
-
Copy full SHA for 6e8e4ce - Browse repository at this point
Copy the full SHA 6e8e4ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for d6ef2c4 - Browse repository at this point
Copy the full SHA d6ef2c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5088774 - Browse repository at this point
Copy the full SHA 5088774View commit details -
Inline streaming fallback into responses resource
Update examples to use AIMLAPI client Replaced OpenAI client imports and usage with AIMLAPI equivalents in async and streaming response examples. Also updated event type checks and removed a TODO comment for consistency. Fix background JSON resume handling
Configuration menu - View commit details
-
Copy full SHA for a0c2892 - Browse repository at this point
Copy the full SHA a0c2892View commit details -
Update image_stream.py Update image_stream.py
Configuration menu - View commit details
-
Copy full SHA for b60f08f - Browse repository at this point
Copy the full SHA b60f08fView commit details -
Add default headers for AIMLAPI client requests
Introduces AIMLAPI_HEADERS with referer and title for identification. These headers are merged into default_headers in _apply_default_client_options to ensure all requests include them.
Configuration menu - View commit details
-
Copy full SHA for ae78000 - Browse repository at this point
Copy the full SHA ae78000View commit details -
Add image streaming and b64_json support
Introduces image streaming and base64-encoded image response support to the AIMLAPI client. Adds Images and AsyncImages resources with b64_json hydration, patches response models for compatibility, and updates examples to demonstrate both URL and base64 image outputs. Removes the obsolete image_stream.py example.
Configuration menu - View commit details
-
Copy full SHA for b20499b - Browse repository at this point
Copy the full SHA b20499bView commit details -
Add uploads resource to AIMLAPI client
Introduces the uploads resource to AIMLAPI and AzureAIMLAPI clients, including async variants. Implements Uploads and AsyncUploads classes to route upload requests to the files endpoint, ensuring compatibility with the API structure. Updates imports and __all__ in the uploads resource package for proper exposure.
Configuration menu - View commit details
-
Copy full SHA for 2e7055f - Browse repository at this point
Copy the full SHA 2e7055fView commit details
Commits on Nov 27, 2025
-
Align docs with AIML examples and update release config
Refactored comments in _version.py to clarify versioning scheme and added release automation marker. Cleaned up release-please-config.json by removing prerelease and extra file settings for improved configuration clarity. Apply code style and formatting improvements This commit updates code style for consistency, including quote normalization, line wrapping, and formatting in examples, source, and test files. It also updates pyproject.toml with new author information and adds 'ruff' as a dependency. No functional changes were made. Update pyproject.toml
Configuration menu - View commit details
-
Copy full SHA for 12b9ab9 - Browse repository at this point
Copy the full SHA 12b9ab9View commit details
Commits on Nov 28, 2025
-
Refactor for AIMLAPI repo and update version to 2.8.1-beta.1
Updated repository references from 'api-sdk-python' to 'aimlapi-sdk-python' throughout the codebase and workflows. Changed version to 2.8.1-beta.1 in pyproject.toml, .release-please-manifest.json, and _version.py. Added a manual version bump workflow, removed OpenAI-specific release workflows, and adjusted CI and PyPI publishing logic for AIMLAPI. Cleaned up imports and ordering in several modules, improved README with example capabilities, and removed deprecated uploads example and test files.
Configuration menu - View commit details
-
Copy full SHA for c8ddd5b - Browse repository at this point
Copy the full SHA c8ddd5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 52ea5e2 - Browse repository at this point
Copy the full SHA 52ea5e2View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...main