-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API is valid but got invalid response, I am not sure where I got it wrong. #291
Comments
I am sure that API is correct cause the following code works
|
Maybe I am not providing enough plugins to run? I am not sure the internal mechanisms. |
It seems that there's an error in tool parsing. Could you provide detailed logs from lagent.hooks import MessageLogger
searcher_agent.agent.register_hook(MessageLogger()) |
Here are the hook result
|
It seems llm are trying to interact with the environment but not found the executor |
How about setting or output_format=PluginParser(
template=(searcher_system_prompt_cn),
tool_info=get_plugin_prompt(plugins),
begin='<|action_start|><|plugin|>',
end='<|action_end|>'
) |
Yeah, that's it. Thx a lot. Anyway, it solved. I am a bit curious about the reason for this bug. Is this specific for me or it is owing to some code reasons? Maybe I should start a pull request to interlm_silicon in models.py in mindsearch project? |
The plugin parser splits messages with I think missing newline at the end of messages caused the action to be parsed as I'm not sure if it is common for SiliconFlow APIs. |
OK, thanks, it seems i am lucky for producing this bug, hh. |
API is valid but got invalid response, I am not sure where I got it wrong.
execution result
The text was updated successfully, but these errors were encountered: