strix icon indicating copy to clipboard operation
strix copied to clipboard

[BUG] DeepseekException - Authentication Fails (governor)

Open 71aoo opened this issue 1 month ago • 6 comments

Image

When using DeepSeek, if litellm.api_key is configured like this, litellm will not include the key in the request header when making requests. Only with this configuration will os.environ['DEEPSEEK_API_KEY'] be included. However, is this bug a bug in strix or litellm? 😂

71aoo avatar Nov 14 '25 10:11 71aoo

我也遇到了这个问题,我使用阿里云的千问AI时,反复遇到了api密钥错误的情况,经过许久的测试,还是因为一些原因无法使用,但是deepseek官方的api可以通过设置如下的配置完成,不过这也会带来其它的意外,比如deepseek不支持image_url参数,而我并没有找到strix禁用图片的选项,这很苦恼。 STRIX_LLM="openai/deepseek-chat" LLM_API_BASE="https://api.deepseek.com" LLM_API_KEY="密钥"

bobisuperplus-sys avatar Nov 15 '25 08:11 bobisuperplus-sys

我也遇到了这个问题,我使用阿里云的千问AI时,反复遇到了api密钥错误的情况,经过许久的测试,还是因为一些原因无法使用,但是deepseek官方的api可以通过设置如下的配置完成,不过这也会带来其它的意外,比如deepseek不支持image_url参数,而我并没有找到strix禁用图片的选项,这很苦恼。 STRIX_LLM="openai/deepseek-chat" LLM_API_BASE="https://api.deepseek.com" LLM_API_KEY="密钥"

因为litellm是根据前缀来判断使用哪种方式调用模型,你填的openai/deepseek-chat会跳转到openai形式调用,openai的LLM_API_KEY配置是没有问题的,所以能用。 要使用deepseek/xxxxx才能调用原来的功能,可以这么配置环境变量试试 os.environ['DEEPSEEK_API_KEY'],我看litellm里面是这么写的。strix应该也不影响。 但你调的是千问的api,这里就不知道怎么配置了,得去调试一下litellm,是不是有对应的配置key的方式。

71aoo avatar Nov 17 '25 02:11 71aoo

我使用的是Moonshot,配置如下,正常运转,需要按照litellm的规则来,LLM_API_KEY实际上不会被使用 export STRIX_LLM="moonshot/moonshot-v1-128k" export LLM_API_KEY="1" export MOONSHOT_API_BASE="https://api.moonshot.cn/v1" export MOONSHOT_API_KEY="sk-xxx"

trah01 avatar Nov 18 '25 02:11 trah01

这个也太烧token了吧。。。。 跑了20分钟,15块就没了

nanioo avatar Nov 20 '25 09:11 nanioo

我这样配置deepseek 也遇到同样的问题了,楼上的是怎么解决的? export STRIX_LLM="deepseek/deepseek-chat" export LLM_API_BASE="https://api.deepseek.com" export LLM_API_KEY="xxxxx"

报错信息如下: Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

Provider List: https://docs.litellm.ai/docs/providers

╭────────────────────────────────────────────────────── 🛡️ STRIX STARTUP ERROR ──────────────────────────────────────────────────────╮ │ │ │ ❌ LLM CONNECTION FAILED │ │ │ │ Could not establish connection to the language model. │ │ Please check your configuration and try again. │ │ │ │ Error: litellm.AuthenticationError: AuthenticationError: DeepseekException - Authentication Fails (governor)

changheluor007 avatar Nov 24 '25 07:11 changheluor007

我这样配置deepseek 也遇到同样的问题了,楼上的是怎么解决的? export STRIX_LLM="deepseek/deepseek-chat" export LLM_API_BASE="https://api.deepseek.com" export LLM_API_KEY="xxxxx"

报错信息如下: Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

Provider List: https://docs.litellm.ai/docs/providers

╭────────────────────────────────────────────────────── 🛡️ STRIX STARTUP ERROR ──────────────────────────────────────────────────────╮ │ │ │ ❌ LLM CONNECTION FAILED │ │ │ │ Could not establish connection to the language model. │ │ Please check your configuration and try again. │ │ │ │ Error: litellm.AuthenticationError: AuthenticationError: DeepseekException - Authentication Fails (governor)

参考litellm配置即可,litellm 怎么配置你就按着配就行

71aoo avatar Nov 27 '25 03:11 71aoo