Skip to content

Commit

Permalink
refactor: ♻️ streamline model parsing and cleanup llms.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jan 13, 2025
1 parent 7f86112 commit 34d6d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/nodehost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class NodeHost implements RuntimeHost {
const modelid = cfg.model
if (this.pulledModels.includes(modelid)) return { ok: true }

const { provider } = parseModelIdentifier(modelid)
const { provider, model } = parseModelIdentifier(modelid)
const { pullModel, listModels } = await resolveLanguageModel(provider)
if (!pullModel) {
this.pulledModels.includes(modelid)
Expand All @@ -153,7 +153,6 @@ export class NodeHost implements RuntimeHost {

if (listModels) {
const models = await listModels(cfg, options)
const { model } = parseModelIdentifier(modelid)
if (models.find(({ id }) => id === model)) {
this.pulledModels.push(modelid)
return { ok: true }
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/llms.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@
"large": "phi4",
"small": "llama3.2:3b",
"embeddings": "nomic-embed-text",
"vision": "llama3.2-vision:11b",
"reasoning": "qwq:32b"
"vision": "llama3.2-vision:11b"
}
},
{
Expand Down

0 comments on commit 34d6d04

Please sign in to comment.