连接硅基流动/silicon flow API已跑通(Complete Tutorial on Connecting to the Silicon Flow API) #707
Replies: 21 comments 9 replies
-
我让他写调研报告,它直接起手就是上Google,然后就卡死了,这个怎么破呀 |
Beta Was this translation helpful? Give feedback.
-
可以试试扩大max token |
Beta Was this translation helpful? Give feedback.
-
上梯子,扩大 max token 貌似没用。 |
Beta Was this translation helpful? Give feedback.
-
就是不想麻烦上梯子呀,有没有啥其他办法呢 |
Beta Was this translation helpful? Give feedback.
-
感觉绕不开,速度慢还会导致请求超时 |
Beta Was this translation helpful? Give feedback.
-
除非搜索引擎模块可配置 |
Beta Was this translation helpful? Give feedback.
-
有帖子改成百度和bing了 |
Beta Was this translation helpful? Give feedback.
-
执行成功结果如下 ![]() |
Beta Was this translation helpful? Give feedback.
-
这里还有一点提醒大家,输入的 prompt 尽可能的具体,避免宽泛的要求,从而避免大模型开始 brain storming,从而造成很多无畏的执行步骤,从而触发大模型的上下文最大 token 限制,导致任务执行失败 Here's a reminder: try to make your input prompts as specific as possible, avoiding broad or vague requests. This helps prevent the large model from engaging in "brainstorming" and generating unnecessary execution steps, which could trigger the maximum token limit for the model's context and lead to task execution failure. |
Beta Was this translation helpful? Give feedback.
-
我的30步执行后,找不到它生成的文件,根本不在指定目录下,搜索也找不到,这是怎么回事呢 |
Beta Was this translation helpful? Give feedback.
-
看你最后的指令了,一般有几个选项,你需要与open manus有交互,不然就是默认选项了,没有任何文件生成,猜测生成的内容只有我们选择生成网页或文件最后才会保存,否则直接摒弃了 |
Beta Was this translation helpful? Give feedback.
-
我的指令就是要生成.md文件,如何直接让它生成一个md文件是可以的,但是让它先做调研然后把调研内容写成.md文件就不行 |
Beta Was this translation helpful? Give feedback.
-
是的,生成文件永远找不到,只提供文件名,不提供存储路径,也没有地方配置,项目下根本没有对应文件。我的做法就是从日志里手动copy出内容,自己保存,另外,输出的日志看起来格式不理想 |
Beta Was this translation helpful? Give feedback.
-
关于存储文件的问题,大家可以关注下/tmp 文件夹下是否有新文件生成,逻辑上是在/tmp 路径下生成,然后存储到 prompt 指定的目录下(但是从来没生成过),然后清除/tmp下的文件,所以关注下/tmp路径下是否有文件生成,可以尝试在文件被删除前复制出来,大家可以去试试 |
Beta Was this translation helpful? Give feedback.
-
`import asyncio from baidusearch.baidusearch import search from app.tool.base import BaseTool class BaiduSearch(BaseTool):
if name == 'main': |
Beta Was this translation helpful? Give feedback.
-
这个模型可以调得通,deepseek模型不行 |
Beta Was this translation helpful? Give feedback.
-
可以试试硅基流动的“deepseek-ai/DeepSeek-V2.5”,应该可以 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
以下是硅基流动支持的模型及模型功能 ![]() |
Beta Was this translation helpful? Give feedback.
-
硅基也支持各种视觉模型: ![]() |
Beta Was this translation helpful? Give feedback.
-
连接硅基流动/silicon flow APi 已跑通
注意事项:
以下是我的配置:
[llm] model = "Qwen/QwQ-32B" base_url = "https://api.siliconflow.cn/v1" api_key = "YOUR_KEY" max_tokens = 4096 temperature = 0.0
如果需要 API key 可以直接申请下:https://cloud.siliconflow.cn/i/mgxXjmE7
The connection to Silicon Flow API has been successfully established.
Notes:
Below is my configuration:
[llm]
model = "Qwen/QwQ-32B"
base_url = "https://api.siliconflow.cn/v1"
api_key = "YOUR_KEY"
max_tokens = 4096
temperature = 0.0
If you need an API key, you can apply for one directly here: https://cloud.siliconflow.cn/i/mgxXjmE7
Beta Was this translation helpful? Give feedback.
All reactions