forked from yaso_meth/mih-project
v10
This commit is contained in:
@@ -31,9 +31,10 @@ 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: {
|
||||
"Content-Type": "application/json",
|
||||
});
|
||||
List<ollama.Message> _chatHistory = [];
|
||||
|
||||
void _addMessage(types.Message message) {
|
||||
|
||||
@@ -173,6 +173,9 @@ http {
|
||||
|
||||
proxy_pass http://MIH-AI:11434/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location ~ /.well-known/acme-challenge/ {
|
||||
|
||||
Reference in New Issue
Block a user