Compare commits
No commits in common. "5570e9de7cb6486fbd3b76284d2571d03f3b5bf3" and "5882134cf94f09230a30e7ce63cff6fa1b40b0f2" have entirely different histories.
5570e9de7c
...
5882134cf9
1 changed files with 9 additions and 3 deletions
|
@ -78,15 +78,21 @@ const InputOutputBackend: React.FC = () => {
|
||||||
? "All measurements follow the metric system. Refuse to use any other measurement system."
|
? "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.";
|
: "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
|
const newSystemMessage = myBoolean
|
||||||
? `You are operating in the timezone: ${timeZone}. Use the ${timeFormat} time format and ${dateFormat} for dates.
|
? `You are operating in the timezone: ${timeZone}. Use the ${timeFormat} time format and ${dateFormat} for dates.
|
||||||
${measurementString}
|
${measurementString}
|
||||||
The currency is ${preferredCurrency}.
|
The currency is ${preferredCurrency}.
|
||||||
Communicate in the language specified by the user (country code: ${preferredLanguage}), and only in this language.
|
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.
|
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.
|
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.
|
||||||
: `You are a helpful assistant.`;
|
${weatherData}`;
|
||||||
|
|
||||||
setSystemMessage(newSystemMessage)
|
setSystemMessage(newSystemMessage)
|
||||||
}, [preferredCurrency, preferredLanguage, timeFormat, preferredMeasurement, timeZone, dateFormat, myBoolean]);
|
}, [preferredCurrency, preferredLanguage, timeFormat, preferredMeasurement, timeZone, dateFormat, myBoolean]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue