Skip to content

Support response api#18

Open
FR-SON wants to merge 4 commits into
arena-ai:mainfrom
FR-SON:support-response-api
Open

Support response api#18
FR-SON wants to merge 4 commits into
arena-ai:mainfrom
FR-SON:support-response-api

Conversation

@FR-SON

@FR-SON FR-SON commented Aug 19, 2025

Copy link
Copy Markdown

This PR bumps up the openai version to the most current 1.99.0 and with that introduces the Responses API in addition to the ChatCompletion API. The older response type is supported without changes. The newer response structure is now also supported for the ParsedResponse, created with responses.parsed() calls to an OpenAI client.
Using a single dispatch pattern the correct implementation is chosen for add_logprobs depending on the given response type. This way, new response types can be added more easily in the future.

Limitations

  • The new API offers many more response types, none of which is supported right now, aside from the mentioned ParsedResponse. For example the basic Response is not supported, because without defining the desired response format the logprobs can not be added and validated properly.
  • add_logprobs_inline is not supported for the Response API because its main feature, the output_parsed field, can not be updated with the inline probabilities. This mismatch between fields of a model is not desirable.

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.

1 participant