storm icon indicating copy to clipboard operation
storm copied to clipboard

如何更改open_ai_base地址

Open DeathGanker opened this issue 9 months ago • 7 comments

我是通过代理的方式访问openai网站,查看了源码没有找到更新open_ai_base的地址,请帮忙解答,感激不尽

DeathGanker avatar Apr 28 '24 10:04 DeathGanker

设置模型那块,apibase可以直接改

kimoji919 avatar Apr 28 '24 12:04 kimoji919

你是说secrets.toml里么,只有azure的api_base,open_ai的没有设置项

DeathGanker avatar Apr 29 '24 02:04 DeathGanker

Hello, if you directly use the API provided by OpenAI, you do need to set api_base (i.e., you just need to leave that field empty). Check out OpenAI python API documentation for more information: https://github.com/openai/openai-python

shaoyijia avatar Apr 29 '24 06:04 shaoyijia

在 src/storm_wiki/engine.py文件中初始化部分,把 api_base: None,改成 api_base: api_base即可。

image

enimo avatar Jul 16 '24 13:07 enimo

我也遇到了这个问题,请问最后是如何解决的

PPG0D avatar Jul 25 '24 02:07 PPG0D

我也遇到了这个问题,请问最后是如何解决的

如上,需改动一下api_base部分的源码,然后使用secrets.toml里azure的api_base即可

enimo avatar Jul 26 '24 05:07 enimo

大佬厉害了,还能看懂中文

sunshinecf avatar Aug 02 '24 08:08 sunshinecf

will close this issue if don't have further discussion by end of this week.

Yucheng-Jiang avatar Aug 24 '24 16:08 Yucheng-Jiang