optional usage of names in prompt
This commit is contained in:
@@ -63,7 +63,7 @@ export class OllamaChat extends ChatCommand {
|
||||
const chatMessages = messageParts.map((part, i) => {
|
||||
return {
|
||||
role: part.bot ? "assistant" : "user",
|
||||
content: `MESSAGE FROM USER "${part.name}":\n` + extractText(part.content, Environment.BOT_PREFIX),
|
||||
content: (Environment.USE_NAMES_IN_PROMPT ? `MESSAGE FROM USER "${part.name}":\n` : "") + extractText(part.content, Environment.BOT_PREFIX),
|
||||
images: imageFilePath && i === 0 ? [imageFilePath] : null
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user