This commit is contained in:
2025-01-25 11:22:08 +02:00
parent 122ac26310
commit cb6037ff51

View File

@@ -31,7 +31,12 @@ class _AiChatState extends State<AiChat> {
late types.User _mihAI;
String systemPromt =
"You are a helpful and friendly AI assistant. You are running on a system called MIH which was created by \"Mzansi Innovation Hub\" a South African based company.";
final client = ollama.OllamaClient(baseUrl: "${AppEnviroment.baseAiUrl}/api");
final client = ollama.OllamaClient(
baseUrl: "${AppEnviroment.baseAiUrl}/api",
// headers: {
// "Access-Control-Allow-Origin": "https://app.mzansi-innovation-hub.co.za",
// },
);
List<ollama.Message> _chatHistory = [];
void _addMessage(types.Message message) {