Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openai-php/client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.12.0
Choose a base ref
Loading
...
head repository: openai-php/client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
  • 12 commits
  • 129 files changed
  • 8 contributors

Commits on May 4, 2025

  1. docs: Corrected readme for current PHP version requirement (#575)

    * Corrected readme for current PHP version requirement
    
    * Update link to canonical version
    GrahamCampbell authored May 4, 2025
    Configuration menu
    Copy the full SHA
    3356a26 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2025

  1. fix(test): Add Throwable type to ClientFake response annotations (#576)

    * Add Throwable type to ClientFake response annotations
    
    * Remove redundant "composer refactor" command from CONTRIBUTING.md
    
    * Add missing status code in the README.md Testing section
    adrmrn authored May 7, 2025
    Configuration menu
    Copy the full SHA
    2241ae0 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2025

  1. Add support for Responses API (#541)

    * Add support for Responses API
    
    Full support to the new Responses API https://platform.openai.com/docs/api-reference/responses
    
    * Updated miss placed files that occurred during first upload
    
    * Heavy refactoring to match codebase pattern, added testing files
    
    * fixed some phpstan errors
    
    * fixing minor bugs after live testing now all models work during live testing
    
    * Fixed lint errors
    
    * Fixed all PHPStan Errors and all other tests Pass 100%
    
    * Completed missing Tests, Created ClientFakeResponses, Modified Fakeable
    
    I had to modify OpenAI\Testing\Responses\Concerns\Fakeable
    as    $class = str_replace('Responses\\', 'Testing\\Responses\\Fixtures\\', static::class).'Fixture';
    was conflicting with newly added Responses folder and added docblock explaining the modification and tested against all files.
    
    Updated readme can be found at README-RESPONSES.md
    
    Added dedicated ClientFake for Responses tests/Testing/ClientFakeResponses.php
    
    * Updated Test files, Fixed Lint errors, all tests pass except test:unit
    
    * chore: remove log file
    
    * chore: pint
    
    * chore: inline Responses doc to readme
    
    * chore: align client contract to pattern
    
    * docs: re-order chat/completion
    
    * fix: use longer replacement to not clobber Responses/*
    
    * fix: parse metadata (optionally)
    
    * test: don't assert on plain arrays
    
    * test: assert stream properly on responses
    
    * chore: add missing docblock property
    
    * fix: add metadata into Responses payload
    
    * test: fix double nesting on delete attrs
    
    * test: correct bad assertions on tests
    
    * fix: remove ResponseObject
    
    * feat: split out usage into classes
    
    * feat: split out error into classes
    
    * feat: split out incomplete_details into classes
    
    * chore(wip): introduction of 'output' typing
    
    * fix: correct OutputMessageContentOutputText + child classes
    
    * OutputMessage
    
    * chore: continued work on output message
    
    * chore: start of ComputerToolActions
    
    * feat: complete "computer tool call"
    
    * fix: add response contract to existing classes
    
    * fix: more fixes to typing on CreateResponse
    
    * feat: add 'reasoning' prop for response
    
    * feat: add 'text' (format) to create
    
    * feat: add 'tool_choice'
    
    * fix: add 'truncation'
    
    * feat: add tool: FileSearch response
    
    * feat: add tool: FunctionTool response
    
    * feat: add tool 'ComputerUse'
    
    * fix: wire up 'tools' to CreateResponse
    
    * Added InputMessage types, refactored ListInputItems
    
    - Added Classes related to InputMessage types
    - refactored ListInputItems to reflect the newly added classes
    
    * Corrected some properties to use camelCase
    
    * fix: cleanup docblock on CreateResponse
    
    * chore: remove unused test response object
    
    * chore: remove extra newline
    
    * fix: 'role' is always 'assistant'
    
    * test: augment tests with single click
    
    * chore: add missing int for computer single click
    
    * test: progression towards 100% coverage on create response
    
    * test: assertion on OutputFileSearchToolCall
    
    * chore: ints for x/y on click event
    
    * fix: further cleanup on CreateResponse
    
    * feat: add computer tool call output
    
    * feat: add function tool call output
    
    * fix: city, region and timezone can return null
    
    * fix: json_schema description can be missing
    
    * Lint Test Pass, Fixed Array map at ListInputItems
    
    * chore: rework text format typing on create response
    
    * feat: rework into phpstan-types
    
    * fix: work on ListInputItems for phpstan-types
    
    * fix: wire up RetrieveResponse
    
    * fix: migrate to phpstan-type for delete
    
    * fix: wip towards stream responses
    
    * chore: add typing props for delete
    
    * test: correct tests for retrieve response
    
    * fix: add outputItem types for streaming
    
    * fix: contentPart/textDelta/textAnnotation added
    
    * fix: outputrefusal*/outputText wired up
    
    * chore: rename Refusal types
    
    * feat: finish typing for streaming
    
    * Wired all classes under Responses/Input
    
    * chore: type ListInputItems
    
    * fix: finalize ListInputItems
    
    * test: ListInputItem tests
    
    * test: stream testing
    
    * fix: shove mock meta object into stream
    
    * test: correct streaming tests
    
    * chore: use local type
    
    * docs: cleanup readme
    
    * chore: align constructors
    
    * fix: mark 'status' as optional in reasoning
    
    * fix: add encrypted_content to reasoning
    
    * fix: file search filters can be null
    
    ---------
    
    Co-authored-by: Connor Tumbleson <connor@sourcetoad.com>
    Co-authored-by: Connor Tumbleson <connor.tumbleson@gmail.com>
    3 people authored May 14, 2025
    Configuration menu
    Copy the full SHA
    27f9329 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3992298 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2025

  1. feat(OpenAI) - Add helper property 'output_text' to Responses API (#579)

    * feat: support 'output_text' on Responses API
    
    * fix: support null on 'output_text'
    iBotPeaches authored May 19, 2025
    Configuration menu
    Copy the full SHA
    a0cc3d6 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2025

  1. fix(OpenAI) - Add index to CreateStreamedResponseToolCall (#562)

    * Update CreateStreamedResponseToolCall.php
    
    * provide index to CreateStreamedResponseToolCall toArray method
    
    * fix type coverage in CreateStreamedResponseToolCall toArray method
    clementmas authored May 22, 2025
    Configuration menu
    Copy the full SHA
    199d237 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2025

  1. fix(OpenAI): $parameters array is not required in thread 'create' met…

    …hod (#577)
    
    * feat: $parameters array is not required in thread 'create' method
    
    * fix: default to empty array on params
    
    * test: assert no params needed on thread.create
    
    ---------
    
    Co-authored-by: Connor Tumbleson <connor@sourcetoad.com>
    erdiarikan and iBotPeaches authored May 28, 2025
    Configuration menu
    Copy the full SHA
    68fd99c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59e27ca View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. Configuration menu
    Copy the full SHA
    0e66f10 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2025

  1. Configuration menu
    Copy the full SHA
    4f95624 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69037e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2025

  1. feat(OpenAI): Realtime Ephermal Tokens (#591)

    * feat: initial work on realtime tokens
    
    * feat: more work on realtime tokens
    
    * fix: add realtime class to client
    
    * fix: threshold is float, not int
    
    * fix: modalities can be null on transcribe
    
    * feat: test build out for realtime
    
    * chore: correct docblock
    
    * test: integration tests for realtime
    iBotPeaches authored Jun 8, 2025
    Configuration menu
    Copy the full SHA
    a2cc4eb View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.