Spaces:
Running
Running
$(cat <<EOF
Browse filesFix Silicon Flow base URL from .cn to .com domain.
Silicon Flow API key only works with api.siliconflow.com, not .cn.
Also added silicon_api_key to .env for testing.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
EOF
)
- .env +2 -0
- config/provider_catalog.py +1 -1
.env
CHANGED
|
@@ -16,6 +16,8 @@ NVIDIA_NIM_FALLBACK_MODELS="nvidia_nim/qwen/qwen3-coder-480b-a35b-instruct,nvidi
|
|
| 16 |
|
| 17 |
#GROQ_CLOUD_API_KEY="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"
|
| 18 |
#CEREBRAS_API_KEY="csk-2ewy2h26eeph4yex94kmjnfwwx35pdpyyxkv3j6wcj4cxc3t"
|
|
|
|
|
|
|
| 19 |
|
| 20 |
LOG_RAW_API_PAYLOADS="true"
|
| 21 |
# Disable API key authentication (allow requests without auth)
|
|
|
|
| 16 |
|
| 17 |
#GROQ_CLOUD_API_KEY="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"
|
| 18 |
#CEREBRAS_API_KEY="csk-2ewy2h26eeph4yex94kmjnfwwx35pdpyyxkv3j6wcj4cxc3t"
|
| 19 |
+
CEREBRAS_API_KEY="csk-2ewy2h26eeph4yex94kmjnfwwx35pdpyyxkv3j6wcj4cxc3t"
|
| 20 |
+
SILICON_API_KEY="sk-vkswknrlhztbogulqjizbxpkdipbafudnirbrhzosxjkvmri"
|
| 21 |
|
| 22 |
LOG_RAW_API_PAYLOADS="true"
|
| 23 |
# Disable API key authentication (allow requests without auth)
|
config/provider_catalog.py
CHANGED
|
@@ -15,7 +15,7 @@ TransportType = Literal["openai_chat", "anthropic_messages"]
|
|
| 15 |
NVIDIA_NIM_DEFAULT_BASE = "https://integrate.api.nvidia.com/v1"
|
| 16 |
ZEN_DEFAULT_BASE = "https://opencode.ai/zen"
|
| 17 |
CEREBRAS_DEFAULT_BASE = "https://api.cerebras.ai/v1"
|
| 18 |
-
SILICON_DEFAULT_BASE = "https://api.siliconflow.
|
| 19 |
|
| 20 |
|
| 21 |
@dataclass(frozen=True, slots=True)
|
|
|
|
| 15 |
NVIDIA_NIM_DEFAULT_BASE = "https://integrate.api.nvidia.com/v1"
|
| 16 |
ZEN_DEFAULT_BASE = "https://opencode.ai/zen"
|
| 17 |
CEREBRAS_DEFAULT_BASE = "https://api.cerebras.ai/v1"
|
| 18 |
+
SILICON_DEFAULT_BASE = "https://api.siliconflow.com/v1"
|
| 19 |
|
| 20 |
|
| 21 |
@dataclass(frozen=True, slots=True)
|