main #49

Merged
sageTheDm merged 7 commits from React-Group/interstellar_ai:main into main 2024-10-10 07:48:11 +02:00
Showing only changes of commit 5570e9de7c - Show all commits

View file

@ -78,21 +78,15 @@ const InputOutputBackend: React.FC = () => {
? "All measurements follow the metric system. Refuse to use any other measurement system."
: "All measurements follow the imperial system. Refuse to use any other measurement system.";
if (!weatherData && localStorage.getItem("activeSelectedAIFunction") == "Weather") {
setWeatherData("")
console.log("Weather is overrated.")
}
const newSystemMessage = myBoolean
? `You are operating in the timezone: ${timeZone}. Use the ${timeFormat} time format and ${dateFormat} for dates.
${measurementString}
The currency is ${preferredCurrency}.
Communicate in the language specified by the user (country code: ${preferredLanguage}), and only in this language.
You are only able to change language if the user specifically states you must.
Do not answer in multiple languages or multiple measurement systems under any circumstances other than the user requesting it.`
: `You are a helpful assistant.
${weatherData}`;
Do not answer in multiple languages or multiple measurement systems under any circumstances other than the user requesting it.
When asked about the weather use those infos: ${weatherData}. If there is nothing there say there is no data`
: `You are a helpful assistant.`;
setSystemMessage(newSystemMessage)
}, [preferredCurrency, preferredLanguage, timeFormat, preferredMeasurement, timeZone, dateFormat, myBoolean]);