-
Notifications
You must be signed in to change notification settings - Fork 14.2k
server: /v1/responses (text generation only) #18227
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
base: master
Are you sure you want to change the base?
Conversation
ngxson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also add a test with openai python library to prove that this is openai-compat.
see tools/server/tests/unit/test_chat_completion.py
Actually, I think this is a very good approach - let's start with a minimal implementation that will permit Codex to work properly with Llama.cpp and we can add more complexities later. |
This PR introduces minimally working openAI-compatible
/v1/responsesAPI by converting /v1/responses request into /v1/chat/completions request.Only text generation is supported and several fields such as IDs (of response and messages) are omitted.
If this appears too unfinished for a merge at this stage, please let me know and I'll convert it to a draft.