-
Notifications
You must be signed in to change notification settings - Fork 80
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
OpenAI API format support #50
base: main
Are you sure you want to change the base?
Conversation
usage=usage, | ||
) | ||
|
||
if request.stream: |
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.
May be it's better to send unprocesseble entity? How openai answering when you choose choices with streaming?
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.
Because of OpenAI documentation, it is mandatory to send data like streaming if streaming is enabled (the stream terminated by a data: [DONE]
message).
openai_api.py
Outdated
- suffix (the language models we currently support do not support | ||
suffix) | ||
- logit_bias (to be supported by Petals engine) | ||
- stream (to be supported by Petals engine) |
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.
Is stream is not supported? 🤨
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.
Docstring and code are not aligned with each other.
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.
Updated docstring info
LGTM |
what's needed for this to be merged? |
No description provided.