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
The wrong names are used for the user and assistant for openai when using ChatPromptTemplate.fromMessages #5231
Comments
The behavior you're observing with the labels "Human" and "AI" in the To customize these labels, LangChain.js provides a configuration option through the It's important to note that the If you're experiencing issues with conversation flow or response generation, it could be due to several factors related to the integration of The For further customization or if you encounter any specific issues with the output or behavior of these methods, reviewing the LangChain.js documentation or exploring alternative methods within the framework might provide additional insights or solutions.
|
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
No response
Description
When I log the output (
handleLLMStart
,_prompts
)Expected:
user: hello
assistant: hello
user: how are you
Actual:
Human: hello
AI: hello
Human: how are you
I have also tried using
MessageHistory
, and manually specifying all messages with["assistant", "hello"]
format messages.I found this, here https://github.com/langchain-ai/langchainjs/blob/e0f5668d3437fad01851fd8472e10705a27d120b/langchain/src/experimental/chat_models/bittensor.ts#L61C1-L74C1
Which seems to indicate the right names were intended here, but presumably this is not being utilized correctly.
System Info
node --version
v20.12.2
"langchain": "0.1.36"
The text was updated successfully, but these errors were encountered: