mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
refactor(FunctionsAgent.js): remove unnecessary text from PREFIX constant
This commit is contained in:
parent
7053d76f48
commit
5b1efc48d1
1 changed files with 2 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ const {
|
|||
HumanMessagePromptTemplate
|
||||
} = require('langchain/prompts');
|
||||
const PREFIX = `You are a helpful AI assistant. Objective: Resolve the user's query with provided functions.
|
||||
The user is demanding a function response to the query; if any part of the query requires a function, respond with the function call first since you won't get to later`;
|
||||
The user is demanding a function response to the query.`;
|
||||
|
||||
function parseOutput(message) {
|
||||
if (message.additional_kwargs.function_call) {
|
||||
|
|
@ -53,8 +53,7 @@ class FunctionsAgent extends Agent {
|
|||
return ChatPromptTemplate.fromPromptMessages([
|
||||
SystemMessagePromptTemplate.fromTemplate(`Date: ${currentDateString}\n${prefix}`),
|
||||
HumanMessagePromptTemplate.fromTemplate(`{chat_history}
|
||||
Query: {input}
|
||||
{agent_scratchpad}`),
|
||||
Query: {input}`),
|
||||
new MessagesPlaceholder('agent_scratchpad')
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue