DeepBI icon indicating copy to clipboard operation
DeepBI copied to clipboard

DeepSeek API 接口集成问题

Open Alphayellowcat opened this issue 11 months ago • 1 comments

标题:DeepSeek API 接口集成问题

问题描述

在使用 DeepBI 软件时发现 DeepSeek 大模型接口存在连接问题。我已经通过独立的测试程序验证了 DeepSeek API 的可用性,确认是 DeepBI 集成方面的问题。

复现步骤

  1. 配置 DeepSeek API key
  2. 尝试在 DeepBI 中使用 DeepSeek 相关功能
  3. 接口调用失败

验证测试

我使用以下测试代码验证了 DeepSeek API 本身是正常工作的: python from openai import OpenAI import os from dotenv import load_dotenv 初始化客户端 client = OpenAI( api_key=DEEPSEEK_API_KEY, base_url="https://api.deepseek.com" ) 测试请求 response = client.chat.completions.create( model="deepseek-chat", messages=[ {"role": "system", "content": "You are a helpful assistant"}, {"role": "user", "content": "你好,这是一个测试消息。"}, ], stream=False )

此测试代码可以正常工作,说明 API 本身没有问题。

期望行为

DeepBI 应该能够正常连接和使用 DeepSeek API。

实际行为

API key 检测未通过

环境信息

  • DeepBI 版本:2.0.4 CN
  • 操作系统:Windows
  • DeepSeek API 版本:最新版

其他信息

Image

Alphayellowcat avatar Jan 23 '25 06:01 Alphayellowcat

有解决这个问题吗

zhangyanxs avatar Mar 31 '25 08:03 zhangyanxs