Skip to content

Conversation

@Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Sep 16, 2025

Related to huggingface/huggingface.js#1743

Tested on https://huggingface.co/swiss-ai/Apertus-70B-Instruct-2509:

from huggingface_hub import InferenceClient

client = InferenceClient(provider="publicai")
completion = client.chat.completions.create(
    model="swiss-ai/Apertus-70B-Instruct-2509",
    messages=[{"role": "user", "content": "What is the capital of Switzerland?"}],
)

print(completion.choices[0].message.content)
The capital of Switzerland is Bern. 

As an AI, I don't know the date, but according to my knowledge cutoff date of 2024-04, Bern remains the capital of Switzerland.

@HuggingFaceDocBuilderDev

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.

@Wauplin Wauplin merged commit 69874ae into main Sep 16, 2025
24 of 26 checks passed
@Wauplin Wauplin deleted the add-publicai-provider branch September 16, 2025 08:09
Wauplin added a commit that referenced this pull request Sep 16, 2025
* Add PublicAI provider

* forgot the file
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.

4 participants