diff --git a/README.md b/README.md index 7a1dd6a..d05a2cd 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ EXAMPLES │[info]:Start Script: ... ``` -_See code: [src/commands/run/index.ts](https://github.com/offline-ai/cli-plugin-core.js/blob/v0.8.5/src/commands/run/index.ts)_ +_See code: [src/commands/run/index.ts](https://github.com/offline-ai/cli-plugin-core.js/blob/v0.8.6/src/commands/run/index.ts)_ # Credit diff --git a/package.json b/package.json index 45a5889..f13c303 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@isdk/ai-tool-downloader": "workspace:*", "@isdk/ai-tool-llm": "workspace:*", "@isdk/ai-tool-llm-llamacpp": "workspace:*", + "@isdk/ai-tool-llm-openai": "workspace:*", "@isdk/ai-tool-prompt": "workspace:*", "@isdk/detect-text-language": "^0.1.1", "@oclif/core": "^4", diff --git a/src/lib/init-tools.ts b/src/lib/init-tools.ts index 42d0c87..1a4ef93 100644 --- a/src/lib/init-tools.ts +++ b/src/lib/init-tools.ts @@ -6,6 +6,7 @@ import { } from '@isdk/ai-tool' import { llm, LLMProvider } from '@isdk/ai-tool-llm' import { LlamaCppProviderName, llamaCpp } from '@isdk/ai-tool-llm-llamacpp' +import { openai } from '@isdk/ai-tool-llm-openai' import { AIPromptsFunc, AIPromptsName } from '@isdk/ai-tool-prompt' import { download } from '@isdk/ai-tool-downloader' import type { Hook, Config } from '@oclif/core' @@ -25,6 +26,7 @@ function initRegisteredProviders() { } registerProvider(llamaCpp) +registerProvider(openai) export async function initTools(this: Hook.Context, userConfig: any, _config: Config) { try {