let the ollama models be auto generated from ollama api
This commit is contained in:
6
app/routes/api.models.ts
Normal file
6
app/routes/api.models.ts
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user