mirror of
https://github.com/bitbaum/causius.git
synced 2026-12-04 09:08:02 +01:00
Starting a matter and writing in one use the fleet's chatkit Composer: a microphone (server transcription, disclosed on /security), a camera/photos/files menu, in-browser covering of photos before they are read, PDFs and text files, and a model picker that starts the free chain at the chosen model. Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3 Co-authored-by: Claude <noreply@anthropic.com>
14 lines
482 B
TypeScript
14 lines
482 B
TypeScript
import { auth } from "@/lib/auth";
|
|
import { offeredModels } from "@/lib/analyze";
|
|
import { json } from "@/lib/matters/http";
|
|
|
|
export const runtime = "nodejs";
|
|
export const dynamic = "force-dynamic";
|
|
|
|
/** GET /api/models — the free models the picker may offer. Ids and abilities only; no keys. */
|
|
export async function GET() {
|
|
const session = await auth();
|
|
if (!session?.actorId) return json({ error: "sign_in" }, 401);
|
|
return json({ models: offeredModels(process.env) });
|
|
}
|