Skip to content

Commit

Permalink
Merge pull request #264 from Hexastack/feat/enhance-llm-helper
Browse files Browse the repository at this point in the history
feat: enhance llm helper support
  • Loading branch information
marrouchi authored Oct 24, 2024
2 parents 28ff1b4 + e2e61ef commit a83b104
Show file tree
Hide file tree
Showing 27 changed files with 54 additions and 762 deletions.
18 changes: 18 additions & 0 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"scripts": {
"postinstall": "patch-package",
"build:clean": "rm -rf src/.hexabot",
"build:channels": "mkdir -p src/.hexabot/channels && find node_modules/ -name 'hexabot-channel-*' -exec cp -R {} src/.hexabot/channels/ \\;",
"build:helpers": "mkdir -p src/.hexabot/helpers && find node_modules/ -name 'hexabot-helper-*' -exec cp -R {} src/.hexabot/helpers/ \\;",
"build:plugins": "mkdir -p src/.hexabot/plugins && find node_modules/ -name 'hexabot-plugin-*' -exec cp -R {} src/.hexabot/plugins/ \\;",
"build:channels": "mkdir -p src/.hexabot/extensions/channels && find node_modules/ -name 'hexabot-channel-*' -exec cp -R {} src/.hexabot/extensions/channels/ \\;",
"build:helpers": "mkdir -p src/.hexabot/extensions/helpers && find node_modules/ -name 'hexabot-helper-*' -exec cp -R {} src/.hexabot/extensions/helpers/ \\;",
"build:plugins": "mkdir -p src/.hexabot/extensions/plugins && find node_modules/ -name 'hexabot-plugin-*' -exec cp -R {} src/.hexabot/extensions/plugins/ \\;",
"build:extensions": "npm run build:channels && npm run build:helpers && npm run build:plugins",
"build:prepare": "npm run build:clean && npm run build:extensions",
"build": "npm run build:prepare && nest build",
Expand Down Expand Up @@ -59,6 +59,8 @@
"dotenv": "^16.3.1",
"ejs": "^3.1.9",
"express-session": "^1.17.3",
"hexabot-helper-ollama": "^2.0.0",
"hexabot-plugin-ollama": "^2.0.0",
"joi": "^17.11.0",
"module-alias": "^2.2.3",
"mongoose": "^8.0.0",
Expand Down Expand Up @@ -165,4 +167,4 @@
"@/(.*)": "<rootDir>/$1"
}
}
}
}
2 changes: 1 addition & 1 deletion api/src/channel/channel.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface ChannelModuleOptions {
// Core & under dev channels
'dist/extensions/**/*.channel.js',
// Installed channels via npm
'dist/.hexabot/channels/**/*.channel.js',
'dist/.hexabot/extensions/channels/**/*.channel.js',
)
@Module({
controllers: [WebhookController, ChannelController],
Expand Down
23 changes: 0 additions & 23 deletions api/src/extensions/helpers/ollama/i18n/en/help.json

This file was deleted.

23 changes: 0 additions & 23 deletions api/src/extensions/helpers/ollama/i18n/en/label.json

This file was deleted.

3 changes: 0 additions & 3 deletions api/src/extensions/helpers/ollama/i18n/en/title.json

This file was deleted.

23 changes: 0 additions & 23 deletions api/src/extensions/helpers/ollama/i18n/fr/help.json

This file was deleted.

23 changes: 0 additions & 23 deletions api/src/extensions/helpers/ollama/i18n/fr/label.json

This file was deleted.

3 changes: 0 additions & 3 deletions api/src/extensions/helpers/ollama/i18n/fr/title.json

This file was deleted.

22 changes: 0 additions & 22 deletions api/src/extensions/helpers/ollama/index.d.ts

This file was deleted.

125 changes: 0 additions & 125 deletions api/src/extensions/helpers/ollama/index.helper.ts

This file was deleted.

10 changes: 0 additions & 10 deletions api/src/extensions/helpers/ollama/package.json

This file was deleted.

Loading

0 comments on commit a83b104

Please sign in to comment.