mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
feat(ai): add Hugging Face provider support
- Add huggingface to KnownProvider type - Add HF_TOKEN env var mapping - Process huggingface models from models.dev (14 models) - Use openai-completions API with compat settings - Add tests for all provider test suites - Update documentation fixes #994
This commit is contained in:
parent
f3cfb7e1ae
commit
c808de605a
16 changed files with 562 additions and 23 deletions
|
|
@ -93,6 +93,7 @@ For each built-in provider, pi maintains a list of tool-capable models, updated
|
|||
- Vercel AI Gateway
|
||||
- ZAI
|
||||
- OpenCode Zen
|
||||
- Hugging Face
|
||||
- MiniMax
|
||||
|
||||
See [docs/providers.md](docs/providers.md) for detailed setup instructions.
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ pi
|
|||
| Vercel AI Gateway | `AI_GATEWAY_API_KEY` |
|
||||
| ZAI | `ZAI_API_KEY` |
|
||||
| OpenCode Zen | `OPENCODE_API_KEY` |
|
||||
| Hugging Face | `HF_TOKEN` |
|
||||
| MiniMax | `MINIMAX_API_KEY` |
|
||||
| MiniMax (China) | `MINIMAX_CN_API_KEY` |
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ export const defaultModelPerProvider: Record<KnownProvider, string> = {
|
|||
mistral: "devstral-medium-latest",
|
||||
minimax: "MiniMax-M2.1",
|
||||
"minimax-cn": "MiniMax-M2.1",
|
||||
huggingface: "moonshotai/Kimi-K2.5",
|
||||
opencode: "claude-opus-4-5",
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue