This commit is contained in:
parent
9ce8fcdcb3
commit
0792830c3d
|
|
@ -35,7 +35,6 @@
|
|||
- 💰 **JSON 轉 Toon 優化** - 將 JSON 數據轉換為 Toon 格式,大幅降低 API 調用開支 [TOON](https://github.com/toon-format/toon)
|
||||
- ⬇️ **一鍵下載報告** - 支援將分析結果匯出為 JSON 檔案,方便保存與分享
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 🤖 LLM 模型支援
|
||||
|
|
@ -60,14 +59,13 @@ TradingAgentsX 支援業界領先的多家 LLM 提供商,並為每個模型配
|
|||
| 提供商 | 支援模型 | Base URL | 是否支援自訂端點 |
|
||||
| ------------------ | ------------------------------------------------------------------------------------------------ | --------------------------------------------------------- | ---------------- |
|
||||
| **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 3 Pro Preview, 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` | ✅ 是 |
|
||||
| **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/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/v1` | ✅ 是 |
|
||||
| **DeepSeek** | DeepSeek Reasoner, DeepSeek Chat | `https://api.deepseek.com/v1` | ✅ 是 |
|
||||
| **Qwen (Alibaba)** | Qwen3-Max, Qwen-Plus, Qwen Flash | `https://dashscope-intl.aliyuncs.com/compatible-mode/v1` | ✅ 是 |
|
||||
| **自訂端點** | 上述列表中的模型 | 使用者自訂 | ✅ 完全支援 |
|
||||
|
||||
|
||||
### 🔧 三層獨立配置
|
||||
|
||||
系統支援**三個獨立的 LLM 配置點**,每個都可使用不同的提供商和 API Key:
|
||||
|
|
|
|||
|
|
@ -210,7 +210,6 @@ class TradingService:
|
|||
"claude-3-5-haiku-20241022",
|
||||
"claude-3-haiku-20240307",
|
||||
# Google
|
||||
"gemini-3-pro-preview",
|
||||
"gemini-2.5-pro",
|
||||
"gemini-2.5-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ export default function HomePage() {
|
|||
/>
|
||||
<LLMProviderCard
|
||||
name="Google Gemini"
|
||||
models={["Gemini 3 Pro Preview", "Gemini 2.5 Pro/Flash", "Gemini 2.0 Flash"]}
|
||||
models={["Gemini 2.5 Pro/Flash/Lite", "Gemini 2.0 Flash/Lite"]}
|
||||
icon="🔵"
|
||||
/>
|
||||
<LLMProviderCard
|
||||
|
|
|
|||
|
|
@ -259,12 +259,14 @@ function DataSourceCard({
|
|||
};
|
||||
|
||||
return (
|
||||
<Card className={`p-3 text-center hover-lift animate-slide-up border-2 ${colorClasses[color]}`}>
|
||||
<div className={`inline-flex items-center justify-center w-10 h-10 rounded-full bg-gradient-to-br ${colorClasses[color].split(' ')[0]} ${colorClasses[color].split(' ')[1]} text-white mb-2 shadow-lg`}>
|
||||
{icon}
|
||||
<Card className={`p-3 hover-lift animate-slide-up border-2 ${colorClasses[color]}`}>
|
||||
<div className="flex flex-col items-center justify-center">
|
||||
<div className={`inline-flex items-center justify-center w-10 h-10 rounded-full bg-gradient-to-br ${colorClasses[color].split(' ')[0]} ${colorClasses[color].split(' ')[1]} text-white mb-2 shadow-lg`}>
|
||||
{icon}
|
||||
</div>
|
||||
<h4 className="font-semibold text-xs mb-0.5">{name}</h4>
|
||||
<p className="text-xs text-gray-600 dark:text-gray-400">{description}</p>
|
||||
</div>
|
||||
<h4 className="font-semibold text-xs mb-0.5">{name}</h4>
|
||||
<p className="text-xs text-gray-600 dark:text-gray-400">{description}</p>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -357,9 +357,6 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
|
|||
</SelectItem>
|
||||
|
||||
{/* Google */}
|
||||
<SelectItem value="gemini-3-pro-preview">
|
||||
Google: Gemini 3 Pro Preview
|
||||
</SelectItem>
|
||||
<SelectItem value="gemini-2.5-pro">
|
||||
Google: Gemini 2.5 Pro
|
||||
</SelectItem>
|
||||
|
|
@ -471,9 +468,6 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
|
|||
</SelectItem>
|
||||
|
||||
{/* Google */}
|
||||
<SelectItem value="gemini-3-pro-preview">
|
||||
Google: Gemini 3 Pro Preview
|
||||
</SelectItem>
|
||||
<SelectItem value="gemini-2.5-pro">
|
||||
Google: Gemini 2.5 Pro
|
||||
</SelectItem>
|
||||
|
|
|
|||
Loading…
Reference in New Issue