-
Notifications
You must be signed in to change notification settings - Fork 823
Add clarifai as Inference provider #3424
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
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 opening this PR @mogith-pn! Implementation can be simplified, otherwise looks good :)
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Could you also run |
Thanks for the quick review @Wauplin . Addressed the comments. |
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.
Looks ready! 🤗
Will keep it open until clarifai is integrated as staging so we can test it "for real".
Hi @mogith-pn, I just pushed 32baaad to fix the error you were getting. The URL / route was not set correctly (didn't catch that at first^^). I can now run the example locally without issues: from huggingface_hub import InferenceClient
client = InferenceClient(provider="clarifai")
completion = client.chat.completions.create(
model="openai/gpt-oss-20b",
messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print("Reasoning:")
print(completion.choices[0].message.reasoning_content)
print("Content:")
print(completion.choices[0].message.content)
|
(failing CI is unrelated) |
Thank you so much @Wauplin ! |
Merging it now! |
Hi Team,
Added clarifai as provider for inference.
Related PR - huggingface/huggingface.js#1781