feat: add --model flag (#32)

This commit is contained in:
Devansh Jain
2025-10-30 16:07:21 -07:00
committed by GitHub
parent f71d2c9b66
commit 09e4f0b13a
14 changed files with 98 additions and 27 deletions

View File

@@ -989,8 +989,7 @@ export default function App({
try {
// Find the selected model from models.json first (for loading message)
const modelsModule = await import("../models.json");
const models = modelsModule.default;
const { models } = await import("../model");
const selectedModel = models.find((m) => m.id === modelId);
if (!selectedModel) {

View File

@@ -1,7 +1,7 @@
// Import useInput from vendored Ink for bracketed paste support
import { Box, Text, useInput } from "ink";
import { useState } from "react";
import models from "../../models.json";
import { models } from "../../model";
import { colors } from "./colors";
interface ModelSelectorProps {