Skip to content

Commit

Permalink
feat: add openai provider
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Sep 25, 2024
1 parent f353a67 commit 509d077
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)_
<!-- commandsstop -->

# Credit
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/lib/init-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -25,6 +26,7 @@ function initRegisteredProviders() {
}

registerProvider(llamaCpp)
registerProvider(openai)

export async function initTools(this: Hook.Context, userConfig: any, _config: Config) {
try {
Expand Down

0 comments on commit 509d077

Please sign in to comment.