feat(provider): add LongCat via OpenAI-compatible backend
This commit is contained in:
@@ -76,6 +76,7 @@ IMAP_PASSWORD=your-password-here
|
||||
| `moonshot` | LLM (Moonshot/Kimi) | [platform.moonshot.cn](https://platform.moonshot.cn) |
|
||||
| `zhipu` | LLM (Zhipu GLM) | [open.bigmodel.cn](https://open.bigmodel.cn) |
|
||||
| `mimo` | LLM (MiMo) | [platform.xiaomimimo.com](https://platform.xiaomimimo.com) |
|
||||
| `longcat` | LLM (LongCat) | [longcat.chat](https://longcat.chat/platform/docs/zh/) |
|
||||
| `ollama` | LLM (local, Ollama) | — |
|
||||
| `lm_studio` | LLM (local, LM Studio) | — |
|
||||
| `mistral` | LLM | [docs.mistral.ai](https://docs.mistral.ai/) |
|
||||
@@ -339,6 +340,34 @@ nanobot agent -c ~/.nanobot-telegram/config.json -w /tmp/nanobot-telegram-test -
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>LongCat (OpenAI-compatible)</b></summary>
|
||||
|
||||
LongCat is available through nanobot's built-in OpenAI-compatible provider flow.
|
||||
The default API base already points to `https://api.longcat.chat/openai`, so you
|
||||
usually only need to set `apiKey`.
|
||||
|
||||
```json
|
||||
{
|
||||
"providers": {
|
||||
"longcat": {
|
||||
"apiKey": "${LONGCAT_API_KEY}"
|
||||
}
|
||||
},
|
||||
"agents": {
|
||||
"defaults": {
|
||||
"provider": "longcat",
|
||||
"model": "LongCat-Flash-Chat"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Official model names include `LongCat-Flash-Chat`, `LongCat-Flash-Thinking`,
|
||||
`LongCat-Flash-Thinking-2601`, and `LongCat-Flash-Lite`.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>Custom Provider (Any OpenAI-compatible API)</b></summary>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user