Skip to content

Sync fork#6

Merged
Fox-Islam merged 23 commits into
mainfrom
dev
May 20, 2026
Merged

Sync fork#6
Fox-Islam merged 23 commits into
mainfrom
dev

Conversation

@Fox-Islam

Copy link
Copy Markdown
Collaborator

No description provided.

ivanmestre and others added 23 commits February 25, 2026 11:09
…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
@Fox-Islam
Fox-Islam merged commit 6e46673 into main May 20, 2026
0 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants