Conversation
…ility (openai-php#744) The Mistral API currently omits the `type` attribute in its tool call responses, which causes an `Undefined array key "type"` exception. This commit defaults the missing `type` to `'function'` (the standard supported type per OpenAI documentation) to prevent runtime errors and ensure broader compatibility with OpenAI-compatible APIs. Fixes openai-php#397
…penai-php#742) * Add missing fields to `OutputImageGenerationToolCall` Add missing fields (`action`, `background`, `output_format`, `quality`, `revised_prompt`, `size`) to `OutputImageGenerationToolCall` (available via the official Python SDK). Example Request: ```python3 import openai response = openai.responses.create( model="gpt-5", input="Generate an image of gray tabby cat hugging an otter with an orange scarf", tools=[{"type": "image_generation"}], ) image_generation_call = next(output for output in response.output if output.type == "image_generation_call") print(image_generation_call) ``` Example Response: ```python3 ImageGenerationCall( id='ig_123', result='...', status='completed', type='image_generation_call', action='generate', background='opaque', output_format='webp', quality='high', revised_prompt='A gray tabby cat hugging an otter. The otter is wearing an orange scarf. Both animals are cute and friendly, depicted in a warm, heartwarming style.', size='1536x1024' ) ``` * Fix OutputCodeInterpreterToolCall test
* feat files missing expiration * add expiresAt to tests * add expires_at to File.php fixture * add expires_at to fineTunes\RetrieveResponseFile * add expires_at to fineTunes\RetrieveResponseFile * composer lint * fix types
…tes function (openai-php#748) * fix vector store file missing updateAttributes in contract * add updateAttributes to the VectorStoresFilesTestResource
* Initial plan * Add phase property to OutputMessage Agent-Logs-Url: https://github.com/openai-php/client/sessions/c806eac2-c4dc-4922-bb8c-80321e374141 Co-authored-by: iBotPeaches <611784+iBotPeaches@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: iBotPeaches <611784+iBotPeaches@users.noreply.github.com>
…i-php#730) (openai-php#757) * fix(OpenAI): React properly to server and 'high demand' errors * fix(OpenAI): Add test for logic to recognize server errors with nested error array * fix(OpenAI): Extract nested error test * fix(OpenAI): Fix code-style
* fix(OpenAI): add no-op rate limit stream class * test(OpenAI): add no-op rate limit stream class
Azure OpenAI's vector-store endpoint does not yet return the `description` field that was added in v0.19.1, causing "Undefined array key description" errors. Default to null when the key is absent, consistent with how other optional fields are handled across the codebase. Co-authored-by: jesse-bos <jesse.bos@dij.digital>
openai-php#768) * fix(Gemini): implement 'extra_content' in tool response * fix(Gemini): fix typings * fix(Gemini): do not include empty fields in response * fix(Gemini): improve typing * fix(Gemini): update tests * fix(Gemini): improving codestyle * fix(Gemini): improving codestyle * fix(Gemini): improvie typing
# Conflicts: # src/Transporters/HttpTransporter.php
# Conflicts: # src/Responses/Responses/Streaming/ContentPart.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.