Closed SchweitzerGAO closed 4 months ago
参考 FAQ
这个 remote deepseek 实现就 4 行,怎么也能 debug 出来
def call_deepseek(self, prompt, history):
client = OpenAI(
api_key=self.server_config['remote_api_key'],
base_url='https://api.deepseek.com/v1',
)
messages = build_messages(
prompt=prompt,
history=history,
system='You are a helpful assistant') # noqa E501
logger.debug('remote api sending: {}'.format(messages))
completion = client.chat.completions.create(
model=self.server_config['remote_llm_model'],
messages=messages,
temperature=0.1,
)
return completion.choices[0].message.content
跑了当前版本没问题。
检查一下这些配置是否有错:
好的,我去测一下main分支,实战营教程文档最开始让切换到另一个分支去了
好的,我去测一下main分支,实战营教程文档最开始让切换到另一个分支去了
main分支可以正常运行,感谢大佬
error log | 日志或报错信息 | ログ
context | 编译/运行环境 | バックグラウンド
Intern Studio 30% A100 with built-in Huixiangdou environment
how to reproduce | 复现步骤 | 再現方法
config.ini
python3 -m tests.test_query_gradio
more | 其他 | その他
--standalone
也无济于事