-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[chore] move app server tests from chat completion to responses #8939
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
Conversation
c37992e to
f014ee8
Compare
f014ee8 to
e82550a
Compare
owenlin0
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.
thanks for doing this! 🙌
|
|
||
| Mock::given(method("POST")) | ||
| .and(path("/v1/chat/completions")) | ||
| .and(path_regex(".*/responses$")) |
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.
curious, why regex instead of just path("/v1/responses")?
|
|
||
| Mock::given(method("POST")) | ||
| .and(path("/v1/chat/completions")) | ||
| .and(path_regex(".*/responses$")) |
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.
same here
| name = "Mock provider for test" | ||
| base_url = "{server_uri}/v1" | ||
| wire_api = "chat" | ||
| wire_api = "responses" |
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.
wonder if we can just remove all of these lines from all of these test configs now:
model_provider = "mock_provider"
[model_providers.mock_provider]
name = "Mock provider for test"
base_url = "{server_uri}/v1"
wire_api = "responses"
request_max_retries = 0
stream_max_retries = 0
We are deprecating chat completions. Move all app server tests from chat completion to responses.