let the ollama models be auto generated from ollama api

This commit is contained in:
yunat
2024-10-18 14:34:08 +03:00
parent 4f7a06f56a
commit 0d777637ff
6 changed files with 94 additions and 35 deletions

6
app/routes/api.models.ts Normal file
View File

@@ -0,0 +1,6 @@
import { json } from '@remix-run/cloudflare';
import { MODEL_LIST } from '~/utils/constants';
export async function loader() {
return json(MODEL_LIST);
}