.
This commit is contained in:
parent
53b935c5c7
commit
6ae916c3be
2 changed files with 7 additions and 4 deletions
|
|
@ -31,10 +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", headers: {
|
||||
"Content-Type": "application/json",
|
||||
});
|
||||
final client = ollama.OllamaClient(
|
||||
baseUrl: "${AppEnviroment.baseAiUrl}/api",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
);
|
||||
List<ollama.Message> _chatHistory = [];
|
||||
|
||||
void _addMessage(types.Message message) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue