/
githubmirror
/
ai-legion
Обзор
Документация
Войти
/
githubmirror
/
ai-legion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/parameters.ts
15 строк
516 B
eumemic
update model registry to include gpt-4.1 and adjust default model in parameters; modify test to use string reference for gpt-3.5-turbo
28 май 2025, 02:52
28 май 2025, 02:52
a6bfba1
Код
Авторство
О чём код?
import { modelRegistry, Model } from "./openai"; const args = process.argv.slice(2); // Remove the first two elements (Node.js executable and script path) export const numberOfAgents = args.length > 0 ? parseInt(args[0]) : 1; console.log(`Number of agents: ${numberOfAgents}`); const modelText = args.length > 1 ? args[1] : "gpt-4.1"; if (!(modelText in modelRegistry)) throw Error(`Unrecognized OpenAI model: '${modelText}'`); export const model: Model = modelText as Model; console.log(`Model: ${model}`);