Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CATCHME-full.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Recommended defaults per provider:
| Provider | `provider` value | Default `model` | Needs `api_key`? |
|----------|-----------------|-----------------|-----------------|
| OpenRouter | `openrouter` | `google/gemini-3-flash-preview` | Yes |
| Requesty | `requesty` | `google/gemini-3-flash-preview` | Yes |
| OpenAI | `openai` | `gpt-4o-mini` | Yes |
| Anthropic | `anthropic` | `claude-sonnet-4-20250514` | Yes |
| DeepSeek | `deepseek` | `deepseek-chat` | Yes |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ For local/offline operation:
| Provider | Config name | Default API URL | Get Key |
| ------------------------- | ------------------------ | ------------------------------------------------------- | -------------------------------------------------------------------- |
| **OpenRouter** (gateway) | `openrouter` | `https://openrouter.ai/api/v1` | [openrouter.ai/keys](https://openrouter.ai/keys) |
| **Requesty** (gateway) | `requesty` | `https://router.requesty.ai/v1` | [app.requesty.ai/api-keys](https://app.requesty.ai/api-keys) |
| **AiHubMix** (gateway) | `aihubmix` | `https://aihubmix.com/v1` | [aihubmix.com](https://aihubmix.com) |
| **SiliconFlow** (gateway) | `siliconflow` | `https://api.siliconflow.cn/v1` | [cloud.siliconflow.cn](https://cloud.siliconflow.cn) |
| **OpenAI** | `openai` | `https://api.openai.com/v1` | [platform.openai.com](https://platform.openai.com/api-keys) |
Expand Down
1 change: 1 addition & 0 deletions assets/readme/README_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ Ejemplo local / sin conexión:
| Proveedor | Nombre en config | URL API por defecto | Obtener clave |
| ------------------------- | ------------------------ | ------------------------------------------------------- | -------------------------------------------------------------------- |
| **OpenRouter** (gateway) | `openrouter` | `https://openrouter.ai/api/v1` | [openrouter.ai/keys](https://openrouter.ai/keys) |
| **Requesty** (gateway) | `requesty` | `https://router.requesty.ai/v1` | [app.requesty.ai/api-keys](https://app.requesty.ai/api-keys) |
| **AiHubMix** (gateway) | `aihubmix` | `https://aihubmix.com/v1` | [aihubmix.com](https://aihubmix.com) |
| **SiliconFlow** (gateway) | `siliconflow` | `https://api.siliconflow.cn/v1` | [cloud.siliconflow.cn](https://cloud.siliconflow.cn) |
| **OpenAI** | `openai` | `https://api.openai.com/v1` | [platform.openai.com](https://platform.openai.com/api-keys) |
Expand Down
1 change: 1 addition & 0 deletions assets/readme/README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ CatchMe はバックグラウンド要約とインテリジェント検索に LL
| プロバイダ | 設定名 | デフォルト API URL | キー取得 |
| ------------------------- | ------------------------ | ------------------------------------------------------- | -------------------------------------------------------------------- |
| **OpenRouter** (gateway) | `openrouter` | `https://openrouter.ai/api/v1` | [openrouter.ai/keys](https://openrouter.ai/keys) |
| **Requesty** (gateway) | `requesty` | `https://router.requesty.ai/v1` | [app.requesty.ai/api-keys](https://app.requesty.ai/api-keys) |
| **AiHubMix** (gateway) | `aihubmix` | `https://aihubmix.com/v1` | [aihubmix.com](https://aihubmix.com) |
| **SiliconFlow** (gateway) | `siliconflow` | `https://api.siliconflow.cn/v1` | [cloud.siliconflow.cn](https://cloud.siliconflow.cn) |
| **OpenAI** | `openai` | `https://api.openai.com/v1` | [platform.openai.com](https://platform.openai.com/api-keys) |
Expand Down
1 change: 1 addition & 0 deletions assets/readme/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ CatchMe 需要 LLM 进行后台摘要与智能检索。使用 **catchme init**
| 服务商 | 配置名称 | 默认 API 地址 | 获取密钥 |
| ------------------------- | ------------------------ | ------------------------------------------------------- | -------------------------------------------------------------------- |
| **OpenRouter**(聚合网关) | `openrouter` | `https://openrouter.ai/api/v1` | [openrouter.ai/keys](https://openrouter.ai/keys) |
| **Requesty**(聚合网关) | `requesty` | `https://router.requesty.ai/v1` | [app.requesty.ai/api-keys](https://app.requesty.ai/api-keys) |
| **AiHubMix**(聚合网关) | `aihubmix` | `https://aihubmix.com/v1` | [aihubmix.com](https://aihubmix.com) |
| **硅基流动**(聚合网关) | `siliconflow` | `https://api.siliconflow.cn/v1` | [cloud.siliconflow.cn](https://cloud.siliconflow.cn) |
| **OpenAI** | `openai` | `https://api.openai.com/v1` | [platform.openai.com](https://platform.openai.com/api-keys) |
Expand Down
16 changes: 14 additions & 2 deletions catchme/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def _p(msg: str) -> None:

_DEFAULT_MODELS: dict[str, str] = {
"openrouter": "google/gemini-3-flash-preview",
"requesty": "google/gemini-3-flash-preview",
"aihubmix": "google/gemini-3-flash-preview",
"siliconflow": "Qwen/Qwen3-8B",
"openai": "gpt-4o-mini",
Expand Down Expand Up @@ -102,14 +103,25 @@ def cmd_init() -> None:
# ── provider selection ──
_p(f" {BOLD}Select LLM provider:{RST}\n")
groups = [
("Gateways", [p for p in PROVIDERS if p[0] in ("openrouter", "aihubmix", "siliconflow")]),
(
"Gateways",
[p for p in PROVIDERS if p[0] in ("openrouter", "requesty", "aihubmix", "siliconflow")],
),
(
"Cloud",
[
p
for p in PROVIDERS
if p[0]
not in ("openrouter", "aihubmix", "siliconflow", "ollama", "vllm", "lmstudio")
not in (
"openrouter",
"requesty",
"aihubmix",
"siliconflow",
"ollama",
"vllm",
"lmstudio",
)
],
),
("Local", [p for p in PROVIDERS if p[0] in ("ollama", "vllm", "lmstudio")]),
Expand Down
1 change: 1 addition & 0 deletions catchme/services/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
PROVIDERS: tuple[tuple[str, str, str, str], ...] = (
# Gateways (route any model from any vendor)
("openrouter", "OpenRouter", "https://openrouter.ai/api/v1", "https://openrouter.ai/keys"),
("requesty", "Requesty", "https://router.requesty.ai/v1", "https://app.requesty.ai/api-keys"),
("aihubmix", "AiHubMix", "https://aihubmix.com/v1", "https://aihubmix.com"),
("siliconflow", "SiliconFlow", "https://api.siliconflow.cn/v1", "https://cloud.siliconflow.cn"),
# Cloud providers
Expand Down
4 changes: 4 additions & 0 deletions catchme/tests/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ def test_get_default_api_url_openrouter(self):
url = get_default_api_url("openrouter")
assert url == "https://openrouter.ai/api/v1"

def test_get_default_api_url_requesty(self):
url = get_default_api_url("requesty")
assert url == "https://router.requesty.ai/v1"

def test_get_default_api_url_unknown(self):
assert get_default_api_url("nonexistent_provider_xyz") is None

Expand Down