tunnel update

This commit is contained in:
2024-09-15 02:45:37 -04:00
parent 8ad6e77d4d
commit 2164f330ac
5 changed files with 1046 additions and 43 deletions

View File

@@ -1,10 +1,6 @@
import {Ollama} from 'ollama'
const ollama = new Ollama({ host: '172.29.186.121:11434', fetch: {
headers: {
'bypass-tunnel-reminder': 'lol'
}
}});
const ollama = new Ollama({ host: process.env.AI_URL });
// const response = await ollama.chat({
// model: 'llama3:latest',
@@ -66,9 +62,6 @@ const questions = [
// ]
export default class FDAI {
constructor(){
this.ai = new Ollama({ host: process.env.AI_URL });
}
async suggestFood(questionAmount, answers, restrictions) {
@@ -79,7 +72,7 @@ export default class FDAI {
}
const response = await ollama.generate({
model: 'llama3:latest',
model: 'meta-llama-3-1-8b-1',
format: "json",
prompt:
`Give one food suggestion for these question answers and then generate a recipe.