Skip to content
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

[Feature Request] Any plans to support Github Models? #6046

Open
M3chD09 opened this issue Jan 6, 2025 · 2 comments
Open

[Feature Request] Any plans to support Github Models? #6046

M3chD09 opened this issue Jan 6, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@M3chD09
Copy link

M3chD09 commented Jan 6, 2025

🥰 Feature Description

GitHub Models is available now. I hope this project can support it.

🧐 Proposed Solution

The api endpoint is https://models.inference.ai.azure.com/. But it can't be used directly in BASE_URL . It always return 404 Resource not found.
I think it POST to https://models.inference.ai.azure.com/v1/chat/completions, while the real url is https://models.inference.ai.azure.com/chat/completions. More flexible processing is needed here.

📝 Additional Information

No response

@M3chD09 M3chD09 added the enhancement New feature or request label Jan 6, 2025
@rexkyng
Copy link

rexkyng commented Jan 7, 2025

a workaround would be setting BASE_URL as https://models.inference.ai.azure.com/chat/completions#

@M3chD09
Copy link
Author

M3chD09 commented Jan 7, 2025

According to your workaround, the POST URL becomes https://models.inference.ai.azure.com/chat/completions#/v1/chat/completions, and anything after the # has no effect, right?
Anyway it works. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants