Files
CatoandClaude 67d583434e feat(matters): one message box with voice, photos, files and a model choice (#21)
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>
2026-10-12 09:42:55 -07:00

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) });
}