FoloToy / folotoy-server-self-hosting

Config files for self-hosting the FoloToy Server. Documents: https://docs.folotoy.com
https://tool.folotoy.com
GNU General Public License v3.0
472 stars 85 forks source link

改为豆包后报错 #198

Open YunShengzz opened 5 months ago

YunShengzz commented 5 months ago

Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/volcenginesdkarkruntime/_base_client.py", line 448, in _request response.raise_for_status() File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 761, in raise_for_status raise HTTPStatusError(message, request=request, response=self) httpx.HTTPStatusError: Client error '401 Unauthorized' for url 'https://ark.cn-beijing.volces.com/api/v3/chat/completions' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401 image 我的配置是这样的,下面两行key我没有截图但是都填写正确了,是我的模型名字填写的不对吗

lewangdev commented 5 months ago

模型名字错了

YunShengzz commented 5 months ago

是我的环境变量中名字错误了,还是roles配置中写错了

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2024年06月21日 22:24 | | 收件人 | FoloToy/folotoy-server-self-hosting @.> | | 抄送人 | YunShengzz @.>, Author @.> | | 主题 | Re: [FoloToy/folotoy-server-self-hosting] 改为豆包后报错 (Issue #198) |

模型名字错了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

lewangdev commented 5 months ago

model_name登录自己的火山账号之后才能看到

lewangdev commented 5 months ago

不是doubao-lite-4k

YunShengzz commented 5 months ago

好的谢谢,正常来说环境变量里面的name和roles里面的name是一样的对吧,我只不过是名字写错了

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2024年06月22日 15:33 | | 收件人 | FoloToy/folotoy-server-self-hosting @.> | | 抄送人 | YunShengzz @.>, Author @.> | | 主题 | Re: [FoloToy/folotoy-server-self-hosting] 改为豆包后报错 (Issue #198) |

不是doubao-lite-4k

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>