You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the below code, which is using an Azure OpenAI LLM, ignores the system message or the extra messages.
agent:=agents.NewConversationalAgent(llm,
agentTools,
agents.WithMaxIterations(3),
agents.NewOpenAIOption().WithSystemMessage("talk like a pirate"),
agents.NewOpenAIOption().WithExtraMessages([]prompts.MessageFormatter{
prompts.NewHumanMessagePromptTemplate("please talk like a pirate", nil),
}),
)
executor:=agents.NewExecutor(agent)
question:="what is the answer for 1000092 / 23999 * 1000000? break it down into steps"answer, err:=chains.Run(context.Background(), executor, question)
No matter the personas i try to instill they are ignored.
The text was updated successfully, but these errors were encountered:
package version: github.com/tmc/langchaingo v0.1.12
Using the below code, which is using an Azure OpenAI LLM, ignores the system message or the extra messages.
No matter the personas i try to instill they are ignored.
The text was updated successfully, but these errors were encountered: