-
Notifications
You must be signed in to change notification settings - Fork 470
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
Newly Created Agent Speaks Chinese #253
Comments
This issue should be related to LLamaSharp, maybe you can raise issue to that repo. |
OK, thanks. I was worried it was some kind of default. The bot shouldn't be responding in Chinese. You're suggesting this is an error in the LlamaSharp library? This is the console output from the call
??,???????????"??,?????",???????? is what comes back in the response as
Because of the following line
I was making the assumption that the response was not being generated by the model but a returnable from something else. The channel invoked by the agent is "openapi" (testing via the api so this is correct), and for some reason the llm provider for azure-openai is also being loaded. Am I correct in assuming this should be restricted to Llama only? The model has also been tested using the LlamaSharp examples and responds, as intended, in English. It seems to me that the solution has some kind of overriding agent or functionality active. The bot refers to itself as Xiaoba, and when asking "what can you do for me" in response to the initial reply, it retunrs a list of actions such as "weather" and "news". |
If you're able to, can you run it in debug mode and go deeper to figure out what is happing? |
Stepping through each line, there is nothing I can see to indicate any error, and nothing immediate which seems to be configured that would specify Chinese for output language. Do you have an example agent, configured to use Llama I could use to test and compare? Using the default AI Assistant agent in the solution also returns Chinese only. This time, however, it calls itself Little Mango
|
@kiebor Any clue you've found? |
LlamaSharp config from appsettings.json
LLM Provider for LlamaSharp:
Agent configuration:
Message Sent:
To allow CPU initialization, 'LlamaSharp.Backend.Cpu' is referenced.
Response:
你好,我是小芭。您可以对我说“小芭,帮我做什么”,我会尽力帮助您。
Rough translation:
This response comes back for everything. The model have been tested in LM studio and doesn't appear to have any affinity for Chinese, What am I doing wrong?
The text was updated successfully, but these errors were encountered: