AI 功能

支持品牌
- OpenAI: GPT 系列模型
- 阿里云 (Aliyun): 通义千问等模型
- DeepSeek: DeepSeek 系列模型
- Claude: Anthropic 模型
- Gemini: Google 模型
功能类型
- 图表分析 (Chart): AI 分析当前图表数据,提供技术分析、趋势判断等
- 预测分析 (Predict): AI 基于历史数据进行价格预测和风险评估
使用方式
- 启用 AI 面板: 在左侧面板选择相应的 AI 功能(如 “OpenAI Chart Analysis”)
- 选择模型: 在 AI 聊天框中从可用模型列表中选择合适的模型
- 配置 API Key: 需要提前在
aiconfigs属性中配置相应品牌的 API Key 和模型 - 开始对话: 输入问题或分析请求,AI 将返回专业的时间序列数据分析结果
支持的模型
Aliyun
qwen-turbo
qwen-plus
qwen-max
qwen-max-longcontext
qwen2.5-0.5b
qwen2.5-0.5b-instruct
qwen2.5-7b
qwen2.5-7b-instruct
qwen2.5-14b
qwen2.5-14b-instruct
qwen2.5-32b
qwen2.5-32b-instruct
qwen2.5-72b
qwen2.5-72b-instruct
qwen2.5-coder
qwen2.5-coder-7b
qwen2.5-coder-14b
qwen2.5-coder-32b
qwen-vl-lite
qwen-vl-plus
qwen-vl-max
qwen-audio-turbo
qwen-audio-chat
qwen-math-7b
llama2-7b-chat-v2
baichuan2-7b-chat-v1
qwen-financial
qwen-financial-14b
qwen-financial-32b
qwen-medical
qwen-medical-14b
qwen-medical-32b
qwen-omni
qwen-omni-pro'DeepSeek
deepseek-chat
deepseek-chat-lite
deepseek-chat-pro
deepseek-chat-max
deepseek-coder
deepseek-coder-lite
deepseek-coder-pro
deepseek-math
deepseek-math-pro
deepseek-reasoner
deepseek-reasoner-pro
deepseek-vision
deepseek-vision-pro
deepseek-finance
deepseek-law
deepseek-medical
deepseek-research
deepseek-omni
deepseek-omni-pro
deepseek-llm
deepseek-llm-67b
deepseek-llm-131b'OpenAI
gpt-4
gpt-4-0314
gpt-4-0613
gpt-4-32k
gpt-4-32k-0314
gpt-4-32k-0613
gpt-4-turbo
gpt-4-turbo-preview
gpt-4-turbo-2024-04-09
gpt-4o
gpt-4o-2024-05-13
gpt-4o-mini
gpt-4o-mini-2024-07-18
gpt-3.5-turbo
gpt-3.5-turbo-0125
gpt-3.5-turbo-1106
gpt-3.5-turbo-instruct
gpt-3.5-turbo-16k
gpt-3.5-turbo-16k-0613
davinci-002
babbage-002
text-davinci-003
text-davinci-002
text-davinci-001
text-curie-001
text-babbage-001
text-ada-001
text-embedding-ada-002
text-embedding-3-small
text-embedding-3-large
dall-e-2
dall-e-3
whisper-1
tts-1
tts-1-hd
text-moderation-latest
text-moderation-stableAPI 集成
系统已集成以下 SDK:
ohlcv-ai库提供 OpenAI、Aliyun、DeepSeek 等的官方 API 调用
配置示例
<CandleView
data={candleData}
title="Test"
theme={theme}
i18n={i18n}
markData={a}
height={800}
leftpanel={true}
toppanel={true}
terminal={true}
ai={true}
aiconfigs={[
// 同时配置不同AI品牌的不同模型
{
proxyUrl: "http://0.0.0.0/api",
brand: "aliyun",
model: "qwen-turbo",
},
{
proxyUrl: "http://0.0.0.0/api",
brand: "aliyun",
model: "qwen-omni",
},
{
proxyUrl: "http://0.0.0.0/api",
brand: "deepseek",
model: "gpt-4",
},
{
proxyUrl: "http://0.0.0.0/api",
brand: "openai",
model: "gpt-3.5-turbo",
},
]}
/>代理接口标准
💡 在 proxyUrl 配置的域中必须实现的服务.
/analyzeOHLCV - 专门用于处理ohlcv数据的服务.