mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-29 21:38:09 +00:00
10 lines
273 B
TypeScript
10 lines
273 B
TypeScript
import { getBackendBaseURL } from "../config";
|
|
|
|
import type { Model } from "./types";
|
|
|
|
export async function loadModels() {
|
|
const res = fetch(`${getBackendBaseURL()}/api/models`);
|
|
const { models } = (await (await res).json()) as { models: Model[] };
|
|
return models;
|
|
}
|