The wrong names are used for the user and assistant for openai when using ChatPromptTemplate.fromMessages #5231
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
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: