Skip to content

feat: Migrate to OpenAI Responses API#192

Merged
cpsievert merged 20 commits into
mainfrom
feat/chat-openai-responses
Nov 4, 2025
Merged

feat: Migrate to OpenAI Responses API#192
cpsievert merged 20 commits into
mainfrom
feat/chat-openai-responses

Conversation

@cpsievert

@cpsievert cpsievert commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator

This PR:

  1. Changes ChatOpenAI() and ChatAzureOpenAI() to use the new Responses API.
    • The "old" versions will still be available as ChatOpenAICompletions() and ChatAzureOpenAICompletions()
  2. Introduces a new ContentThinking() class to better support reasoning models. More to come on this later.

@cpsievert cpsievert force-pushed the feat/chat-openai-responses branch from 4b68d7a to 7a70749 Compare October 28, 2025 21:58
@cpsievert cpsievert force-pushed the feat/chat-openai-responses branch 6 times, most recently from d83d6c2 to b411396 Compare October 29, 2025 23:26
@cpsievert cpsievert marked this pull request as ready for review October 29, 2025 23:27
@cpsievert cpsievert requested a review from Copilot October 29, 2025 23:27

This comment was marked as resolved.

@cpsievert cpsievert force-pushed the feat/chat-openai-responses branch 3 times, most recently from 0c38b9c to 0769844 Compare October 30, 2025 00:32
@cpsievert cpsievert requested a review from Copilot October 30, 2025 14:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 28 out of 28 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cpsievert cpsievert force-pushed the feat/chat-openai-responses branch from ecf4262 to bd357ab Compare October 30, 2025 17:48
Comment thread tests/test_batch_chat.py

from chatlas import ChatAnthropic, ChatGoogle, ChatOpenAI
from chatlas import ChatAnthropic, ChatGoogle
from chatlas import ChatOpenAICompletions as ChatOpenAI

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migrate these tests to responses API

@cpsievert cpsievert changed the title feat: Add OpenAI Responses API support feat: Migrate to OpenAI Responses API Oct 30, 2025
@cpsievert cpsievert force-pushed the feat/chat-openai-responses branch from 2355733 to fa889ea Compare November 4, 2025 16:00
@cpsievert cpsievert merged commit 39fa407 into main Nov 4, 2025
5 of 7 checks passed
@cpsievert cpsievert requested a review from Copilot November 4, 2025 23:17
@cpsievert cpsievert deleted the feat/chat-openai-responses branch November 4, 2025 23:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread chatlas/_provider_openai.py
Comment thread chatlas/_provider_openai.py
Comment thread chatlas/_provider_openai.py
Comment thread chatlas/_provider_openai.py
Comment thread docs/get-started/models.qmd
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.

2 participants