Skip to content

Append the endpoint path to the base_url instead of replacing the path#35

Open
fabienric wants to merge 1 commit intohuggingface:mainfrom
fabienric:fix-url-path
Open

Append the endpoint path to the base_url instead of replacing the path#35
fabienric wants to merge 1 commit intohuggingface:mainfrom
fabienric:fix-url-path

Conversation

@fabienric
Copy link

I'm testing the tool to benchmark an endpoint that is OpenAI-compatible but where the routes are behind a path, for example https://myendpoint.com/api/openai_compat/v1/chat/completions.

Currently, when I pass the url https://myendpoint.com/api/openai_compat in the CLI, the endpoint path overrides the existing path, so the tool calls https://myendpoint.com/v1/chat/completions which is not available.

This change appends the endpoint path to the base url instead of replacing it, enabling my use case.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant