We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to access the serverless inference endpoints using the OpenAI compatible route leads to status 400.
Invalid URL: missing field `name`
Here is a curl command to run inference, requires to setup your HF_TOKEN.
curl https://api-inference.huggingface.co/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HF_TOKEN" \ -d '{ "model": "meta-llama/Llama-3.3-70B-Instruct", "messages": [ { "role": "user", "content": "Write a short poem." } ] }'
This endpoint should be "openai" compatible.
The text was updated successfully, but these errors were encountered:
+1 The same request works in this URL format though:
https://api-inference.huggingface.co/models/meta-llama/Llama-3.3-70B-Instruct/v1/chat/completions
Sorry, something went wrong.
No branches or pull requests
System Info
Trying to access the serverless inference endpoints using the OpenAI compatible route leads to status 400.
Information
Tasks
Reproduction
Here is a curl command to run inference, requires to setup your HF_TOKEN.
Expected behavior
This endpoint should be "openai" compatible.
The text was updated successfully, but these errors were encountered: