feat: add --model flag (#32)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user