Skip to content

Expose a way to customize the path to the chat completions endpoint #369

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kerollmops
Copy link

Some APIs are close to being compatible with this crate. The byot (bring your own type) feature is handy, but useless when the path is incompatible.

For example, Ollama's chat completions route is close to the OpenAI API but reachable on the /api/chat route. On the other hand, Claude (Anthropic) is available through the /v1/messages route, which is also very close to being compatible with the OpenAI API.

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