feat(providers): add APIFree support

Add APIFree as a built-in OpenAI-compatible provider. APIFree offers
agent-optimised models such as skywork-ai/skyclaw-v1 through an
OpenAI-compatible API at https://api.apifree.ai/agent/v1.

Changes:
- Register apifree provider in the provider registry
- Add config schema field
- Add documentation with configuration example
- Add provider tests, websocket channel tests, and webui tests
- Add provider icon in settings UI
This commit is contained in:
moran authored and Xubin Ren committed 2026-05-20 12:33:03 +08:00
1 parent 3eebe08dba
commit 61ae869610
7 files changed
+123

No files matched your search

+10
View File
@@ -412,6 +412,16 @@ 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(