From 69286a73a7fef8faf65e3f803bca534e7b01f8cc Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Sep 2024 16:34:49 -0700 Subject: [PATCH] update llm-info usage in core --- core/llm/index.ts | 1 + core/package-lock.json | 8 ++++---- core/package.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index 9a1ddaf46..8150b64dd 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -135,6 +135,7 @@ export abstract class BaseLLM implements ILLM { }; this.model = options.model; + // Use @continuedev/llm-info package to autodetect certain parameters const llmInfo = findLlmInfo(this.model); const templateType = diff --git a/core/package-lock.json b/core/package-lock.json index a3332dc01..2dfc86570 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -13,7 +13,7 @@ "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", "@continuedev/config-types": "^1.0.10", - "@continuedev/llm-info": "^1.0.1", + "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@typescript-eslint/eslint-plugin": "^7.8.0", @@ -3128,9 +3128,9 @@ } }, "node_modules/@continuedev/llm-info": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@continuedev/llm-info/-/llm-info-1.0.1.tgz", - "integrity": "sha512-fmRXuOSwJ9ogBPSDduoedHF3WVg1rge3o8SRRg1hkUagRnxwZqtQj1sS5SjQyAqjQv6VPMGPDEtD77Za/hc4Jg==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@continuedev/llm-info/-/llm-info-1.0.2.tgz", + "integrity": "sha512-B5VFcZlwlwQg6htbIjCjj3z/pj3I929BzgWowiLzxYC40ag+v3e/hM9EDGWCEdNIT+PDMchAwS67iNB+WhE7qg==" }, "node_modules/@esbuild/darwin-x64": { "version": "0.17.19", diff --git a/core/package.json b/core/package.json index f261f7078..002550df7 100644 --- a/core/package.json +++ b/core/package.json @@ -42,7 +42,7 @@ "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", "@continuedev/config-types": "^1.0.10", - "@continuedev/llm-info": "^1.0.1", + "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@typescript-eslint/eslint-plugin": "^7.8.0",