Skip to content

Using PublicAI models causes an error #4685

@zer0tonin

Description

@zer0tonin

Issue

Hello,

The command aider --list-models publicai makes it look like we should be able to use PublicAI models:

Models which match "publicai":
- publicai/BSC-LT/ALIA-40b-instruct_Q8_0
- publicai/BSC-LT/salamandra-7b-instruct-tools-16k
- publicai/aisingapore/Gemma-SEA-LION-v4-27B-IT
- publicai/aisingapore/Qwen-SEA-LION-v4-32B-IT
- publicai/allenai/Olmo-3-32B-Think
- publicai/allenai/Olmo-3-7B-Instruct
- publicai/allenai/Olmo-3-7B-Think
- publicai/swiss-ai/apertus-70b-instruct
- publicai/swiss-ai/apertus-8b-instruct

In practice, calling those models seems to always result in an error:

❯ export PUBLICAI_API_KEY=[MY_KEY]
❯ aider --model=publicai/swiss-ai/apertus-70b-instruct

Aider v0.86.1
Model: publicai/swiss-ai/apertus-70b-instruct with ask edit format
Git repo: .git with 93 files
Repo-map: using 1024.0 tokens, auto refresh

ask> [MY_QUESTION]

litellm.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=publicai/swiss-ai/apertus-70b-instruct
 Pass model as E.g. For 'Huggingface' inference endpoints pass in `completion(model='huggingface/starcoder',..)` Learn more: https://docs.litellm.ai/docs/providers

https://docs.litellm.ai/docs/providers

Version and model info

Aider v0.86.1
Model: publicai/swiss-ai/apertus-70b-instruct with ask edit format
Git repo: .git with 93 files
Repo-map: using 1024.0 tokens, auto refresh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions