This commit is contained in:
parent
6b43650128
commit
34774c587f
|
|
@ -45,7 +45,7 @@ TradingAgents 支援業界領先的多家 LLM 提供商,並為每個模型配
|
|||
|--------|---------|----------|----------------|
|
||||
| **OpenAI** | GPT-5.1, GPT-5 Mini/Nano, GPT-4.1 Mini/Nano, o4-mini | `https://api.openai.com/v1` | ✅ 是 |
|
||||
| **Anthropic** | Claude Haiku 4.5, Claude Sonnet 4.5/4.0, Claude 3.5 Haiku, Claude 3 Haiku | `https://api.anthropic.com/` | ✅ 是 |
|
||||
| **Gemini** | Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite, Gemini 2.0 Flash, Gemini 2.0 Flash Lite | `https://generativelanguage.googleapis.com/v1beta` | ✅ 是 |
|
||||
| **Gemini** | Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite, Gemini 2.0 Flash, Gemini 2.0 Flash Lite | `https://generativelanguage.googleapis.com/v1beta/openai/` | ✅ 是 |
|
||||
| **Grok (xAI)** | Grok-4.1 Fast, Grok-4 Fast, Grok-4, Grok-3, Grok-3 Mini | `https://api.x.ai/v1` | ✅ 是 |
|
||||
| **DeepSeek** | DeepSeek Reasoner, DeepSeek Chat | `https://api.deepseek.com` | ✅ 是 |
|
||||
| **Qwen (Alibaba)** | Qwen3-Max, Qwen-Plus, Qwen Flash | `https://dashscope-intl.aliyuncs.com/compatible-mode/v1` | ✅ 是 |
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@ def select_llm_provider() -> tuple[str, str]:
|
|||
BASE_URLS = [
|
||||
("OpenAI", "https://api.openai.com/v1"),
|
||||
("Anthropic", "https://api.anthropic.com/"),
|
||||
("Google", "https://generativelanguage.googleapis.com/v1beta"),
|
||||
("Google", "https://generativelanguage.googleapis.com/v1beta/openai/"),
|
||||
("Grok", "https://api.x.ai/v1"),
|
||||
("DeepSeek", "https://api.deepseek.com"),
|
||||
("Qwen", "https://dashscope-intl.aliyuncs.com/compatible-mode/v1"),
|
||||
|
|
|
|||
|
|
@ -533,7 +533,7 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
|
|||
<SelectItem value="https://api.anthropic.com/">
|
||||
Anthropic
|
||||
</SelectItem>
|
||||
<SelectItem value="https://generativelanguage.googleapis.com/v1">
|
||||
<SelectItem value="https://generativelanguage.googleapis.com/v1beta/openai/">
|
||||
Google (Gemini)
|
||||
</SelectItem>
|
||||
<SelectItem value="https://api.x.ai/v1">
|
||||
|
|
@ -552,7 +552,7 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
|
|||
{(![
|
||||
"https://api.openai.com/v1",
|
||||
"https://api.anthropic.com/",
|
||||
"https://generativelanguage.googleapis.com/v1",
|
||||
"https://generativelanguage.googleapis.com/v1beta/openai/",
|
||||
"https://api.x.ai/v1",
|
||||
"https://api.deepseek.com",
|
||||
"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
|
||||
|
|
@ -632,7 +632,7 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
|
|||
<SelectItem value="https://api.anthropic.com/">
|
||||
Anthropic
|
||||
</SelectItem>
|
||||
<SelectItem value="https://generativelanguage.googleapis.com/v1">
|
||||
<SelectItem value="https://generativelanguage.googleapis.com/v1beta/openai/">
|
||||
Google (Gemini)
|
||||
</SelectItem>
|
||||
<SelectItem value="https://api.x.ai/v1">
|
||||
|
|
@ -651,7 +651,7 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
|
|||
{(![
|
||||
"https://api.openai.com/v1",
|
||||
"https://api.anthropic.com/",
|
||||
"https://generativelanguage.googleapis.com/v1",
|
||||
"https://generativelanguage.googleapis.com/v1beta/openai/",
|
||||
"https://api.x.ai/v1",
|
||||
"https://api.deepseek.com",
|
||||
"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
|
||||
|
|
|
|||
Loading…
Reference in New Issue