Skip to content

RDBC-1217 RavenDB-27378 Adds OpenAI Responses API - #330

Open
poissoncorp wants to merge 1 commit into
ravendb:v7.2from
poissoncorp:sdk-sync/RDBC-1217
Open

poissoncorp wants to merge 1 commit into
ravendb:v7.2from
poissoncorp:sdk-sync/RDBC-1217

Conversation

@poissoncorp

Copy link
Copy Markdown
Contributor

OpenAI, Azure OpenAI and Ollama connection strings can choose the chat API (chat_api: Responses or Chat Completions) and set reasoning_effort.

  • Changed: new OpenAiChatApiSettings base and OpenAiChatApiType enum in open_ai_chat_api_settings.py. OpenAiSettings, AzureOpenAiSettings and OllamaSettings derive from it. OllamaSettings gets an optional api_key; uri is now the same value as endpoint and is still stored as Uri. Existing constructor arguments keep their order.
  • Not ported: field validation, Compare and the default API choice are server-side. When chat_api is not set, the server uses Responses for OpenAI at api.openai.com (or no endpoint) and for Azure OpenAI, and Chat Completions otherwise. The Seed deprecation does not apply: the Python client has no seed.
  • Tests: test_open_ai_chat_api_settings.py covers JSON and round trips for the three providers and the Ollama Uri and api_key handling (from AiConnectionStringsTests.OllamaConnection_SavedBeforeOpenAiBaseSettings_BehavesAsBefore, client part). The Responses provider tests check server internals and are not ported.
  • Checks: black --check passed; the unit tests pass locally. The connection string round trip tests need a server and run only in CI.

Ticket: RDBC-1217
C# change: ravendb/ravendb#24031

SDK Sync Agent

@poissoncorp poissoncorp added the sdk-sync Port of C# client changes from an SDK sync task label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sdk-sync Port of C# client changes from an SDK sync task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant