Skip to content

fix: OpenAI Multi-turn support #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

neo773
Copy link

@neo773 neo773 commented Jun 30, 2025

Check test log
test.log

/claim #53
/closes #53

@neo773
Copy link
Author

neo773 commented Jun 30, 2025

cc
@jdegoes @vigoo

trace!("Sending request to OpenAI API: {request:?}");

let response: Response = self
.client
.request(Method::POST, format!("{BASE_URL}/v1/responses"))
.request(Method::POST, format!("{BASE_URL}/v1/chat/completions"))

Choose a reason for hiding this comment

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

My understanding is that the /v1/responses is the more recent api and should be preferred.
https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses

Why is switching to the older chat completions api necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: llm/openai fails with 400 error in multi-turn conversations
2 participants