.
This commit is contained in:
@@ -31,10 +31,12 @@ class _AiChatState extends State<AiChat> {
|
|||||||
late types.User _mihAI;
|
late types.User _mihAI;
|
||||||
String systemPromt =
|
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.";
|
"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 =
|
final client = ollama.OllamaClient(
|
||||||
ollama.OllamaClient(baseUrl: "${AppEnviroment.baseAiUrl}/api", headers: {
|
baseUrl: "${AppEnviroment.baseAiUrl}/api",
|
||||||
"Content-Type": "application/json",
|
headers: {
|
||||||
});
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
);
|
||||||
List<ollama.Message> _chatHistory = [];
|
List<ollama.Message> _chatHistory = [];
|
||||||
|
|
||||||
void _addMessage(types.Message message) {
|
void _addMessage(types.Message message) {
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ services:
|
|||||||
tty: true
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
- OLLAMA_ORIGINS=*
|
||||||
- OLLAMA_KEEP_ALIVE=24h
|
- OLLAMA_KEEP_ALIVE=24h
|
||||||
- OLLAMA_HOST=0.0.0.0
|
- OLLAMA_HOST=0.0.0.0
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user