Repository navigation
Breaking Changes:
-
Default models updated to current generation
- Chat & Responses default model changed from
gpt-4.1togpt-5.4 - Embeddings default changed from
text-embedding-ada-002totext-embedding-3-small. Vectors are not comparable across models: pinmodel = "text-embedding-ada-002"or re-embed existing data if you rely on the old default completion()default changed from the retiredtext-davinci-003togpt-3.5-turbo-instruct
- Chat & Responses default model changed from
-
completion()no longer sets defaulttemperatureormax_tokens- Only explicitly provided parameters are sent to the API
-
ResponsesChatSessionnow forwards all session options with every request- Previously only
model,instructions, andtoolswere sent; options likereasoningandtemperaturewere silently dropped - Unknown keys stored in session options will now be rejected by the API
- Previously only
New Features:
-
Added Conversations API support for server-side conversation state
create_conversation(),conversation(),update_conversation(),delete_conversation()conversation_items(),add_conversation_items(),conversation_item(),delete_conversation_item()ResponsesChatSessionaccepts aconversationoption, used in place ofprevious_response_idchaining
-
Added file uploads and other multipart endpoints
upload_file()andfile_content()for uploading & downloading filesaudio_transcription()for speech to textimage_edit()for image editing with one or more input images- Encoding handled by the new
openai.multipartmodule
-
Added Batch API support
create_batch(),batch(),cancel_batch(),batches()- Combined with
upload_file()andfile_content()for the full request file → poll → results workflow
-
Added support for the
developerrole in messages for both Chat Completions and Responses APIs -
Added compatibility clients for more providers
openai.compat.anthropic,openai.compat.deepseek,openai.compat.mistral,openai.compat.moonshot,openai.compat.mimo
-
ChatSessionnow returns the raw API response as a second return value and stores it onchat.last_response
Improvements:
-
Responses API parsing no longer fails on unrecognized output item types
- Responses containing
reasoning,web_search_call, and other non-message items now parse correctly
- Responses containing
-
Updated examples and documentation to current models, removed
temperaturefrom introductory examples