fix(providers): point Skywork at APIFree agent endpoint

This commit is contained in:
Xubin Ren committed 2026-05-20 12:33:03 +08:00
1 parent 6194a9b919
commit eae51333ad
8 files changed
+6 -127

No files matched your search

+1 -11
View File
@@ -165,7 +165,7 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
env_extras=(("APIFREE_API_KEY", "{api_key}"),),
is_gateway=True,
detect_by_base_keyword="apifree.ai",
default_api_base="https://api.apifree.ai/v1",
default_api_base="https://api.apifree.ai/agent/v1",
),
# AiHubMix: global gateway, OpenAI-compatible interface.
# strip_model_prefix=True: doesn't understand "anthropic/claude-3",
@@ -412,16 +412,6 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
detect_by_base_keyword="ant-ling.com",
default_api_base="https://api.ant-ling.com/v1",
),
# APIFree: OpenAI-compatible API gateway with agent-optimised models.
ProviderSpec(
name="apifree",
keywords=("apifree", "api-free", "skyclaw"),
env_key="APIFREE_API_KEY",
display_name="APIFree",
backend="openai_compat",
detect_by_base_keyword="apifree.ai",
default_api_base="https://api.apifree.ai/agent/v1",
),
# === Local deployment (matched by config key, NOT by api_base) =========
# vLLM / any OpenAI-compatible local server
ProviderSpec(