diff --git a/core/config/util.ts b/core/config/util.ts index a53027a76..08bf8949b 100644 --- a/core/config/util.ts +++ b/core/config/util.ts @@ -10,7 +10,6 @@ import { JSONModelDescription, PromptTemplate, } from "../"; -import { DEFAULT_CHAT_SYSTEM_MESSAGE } from "../llm/defaultSystemMessages"; import { GlobalContext } from "../util/GlobalContext"; import { editConfigFile } from "../util/paths"; @@ -80,12 +79,6 @@ export function addModel( maxStopWords: model.maxStopWords, defaultCompletionOptions: model.completionOptions, }; - if (model.systemMessage) { - desc.chatOptions = { - baseSystemMessage: - DEFAULT_CHAT_SYSTEM_MESSAGE + "\n\n" + model.systemMessage, - }; - } config.models.push(desc); return config; }, diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index fb06b0427..be50ef6f5 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -679,7 +679,6 @@ export const models: { [key: string]: ModelPackage } = { model: "granite-code", contextLength: 20_000, title: "Granite Code", - systemMessage: `You are Granite Chat, an AI language model developed by IBM. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior. You always respond to greetings (for example, hi, hello, g'day, morning, afternoon, evening, night, what's up, nice to meet you, sup, etc) with "Hello! I am Granite Chat, created by IBM. How can I help you today?". Please do not say anything else and do not start a conversation.`, }, providerOptions: ["ollama", "lmstudio", "llama.cpp", "replicate"], icon: "ibm.png", @@ -1154,8 +1153,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt-4o", contextLength: 128_000, title: "GPT-4o", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", }, providerOptions: ["openai", "askSage"], icon: "openai.png", @@ -1169,8 +1166,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt-4o-mini", contextLength: 128_000, title: "GPT-4o mini", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", }, providerOptions: ["openai", "askSage"], icon: "openai.png", @@ -1424,8 +1419,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt4-gov", contextLength: 128_000, title: "GPT-4 gov", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", // Need to set this on the Ask Sage side or just configure it in here to be discussed }, providerOptions: ["askSage"], icon: "openai.png", @@ -1439,8 +1432,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt-4o-gov", contextLength: 128_000, title: "GPT-4o-gov", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", // Need to set this on the Ask Sage side or just configure it in here to be discussed }, providerOptions: ["askSage"], icon: "openai.png", @@ -1453,8 +1444,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt-gov", contextLength: 8096, title: "GPT-3.5-Turbo gov", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", // Need to set this on the Ask Sage side or just configure it in here to be discussed }, providerOptions: ["askSage"], icon: "openai.png", @@ -1468,8 +1457,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt-4o-mini-gov", contextLength: 128_000, title: "GPT-4o-mini gov", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", // Need to set this on the Ask Sage side or just configure it in here to be discussed }, providerOptions: ["askSage"], icon: "openai.png", @@ -1509,8 +1496,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt-o1", contextLength: 128_000, title: "GPT-o1", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", }, providerOptions: ["askSage"], icon: "openai.png", @@ -1524,8 +1509,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt-o1-mini", contextLength: 128_000, title: "GPT-o1-mini", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", }, providerOptions: ["askSage"], icon: "openai.png", @@ -1539,8 +1522,6 @@ export const models: { [key: string]: ModelPackage } = { model: "gpt-o3-mini", contextLength: 200_000, title: "GPT-o3-mini", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", }, providerOptions: ["askSage"], icon: "openai.png", @@ -1554,8 +1535,6 @@ export const models: { [key: string]: ModelPackage } = { model: "aws-bedrock-claude-35-sonnet-gov", contextLength: 200_000, title: "Claude 3.5 Sonnet gov", - systemMessage: - "You are an expert software developer. You give helpful and concise responses.", }, providerOptions: ["askSage"], icon: "anthropic.png",