-
Notifications
You must be signed in to change notification settings - Fork 263
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
Add framework to setup integration test #616
Conversation
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.
rest part looks good to me
development/app/app.py
Outdated
@@ -278,6 +278,7 @@ def completion(): | |||
return jsonify(err), 500 | |||
|
|||
|
|||
@app.route('/chat/completions', methods=['POST']) |
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.
what's the endpoint for?
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.
on using openai-go official openai go library uses /chat/completion and v1/chat/completion is used by batch api.
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.
I feel this is kind of confusing. golang sdk hit different endpoints?
- we are not using batch in testing scenarios
/chat/completion
this is openai not compatible
is there a detail problem on the golang sdk usage?
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.
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.
seems they assume v1
as part of the UrlBase
. final url is still v1/chat/completions? openai/openai-go#105
If it does need /chat/completions
, let document this part in the file.
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.
added a middleware router to append /v1.
No description provided.