Skip to content

Commit

Permalink
feat: enable AI integration and update dependencies
Browse files Browse the repository at this point in the history
- Activated AI functionality in Nuxt configuration
- Updated AI model to a newer version for enhanced performance
- Bumped @nuxthub/core to 0.7.3 for critical bug fixes and improvements
  • Loading branch information
ccbikai committed Aug 18, 2024
1 parent 5578357 commit b116d4c
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 27 deletions.
4 changes: 2 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineNuxtConfig({
},

hub: {
// ai: true,
ai: true,
analytics: true,
blob: false,
cache: false,
Expand Down Expand Up @@ -58,7 +58,7 @@ export default defineNuxtConfig({
cfAccountId: '',
cfApiToken: '',
dataset: 'sink',
aiModel: '@cf/meta/llama-3-8b-instruct',
aiModel: '@cf/meta/llama-3.1-8b-instruct',
aiPrompt: `You are a URL shortening assistant, please shorten the URL provided by the user into a SLUG. The SLUG information must come from the URL itself, do not make any assumptions. A SLUG is human-readable and should not exceed three words and can be validated using regular expressions {slugRegex} . Only the best one is returned, the format must be JSON reference {"slug": "example-slug"}`,
public: {
previewMode: '',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@antfu/eslint-config": "^2.21.3",
"@nuxt/eslint": "^0.3.13",
"@nuxt/eslint-config": "^0.3.13",
"@nuxthub/core": "^0.7.0",
"@nuxthub/core": "^0.7.3",
"@nuxtjs/color-mode": "^3.4.2",
"@nuxtjs/tailwindcss": "^6.12.0",
"class-variance-authority": "^0.7.0",
Expand Down
Loading

0 comments on commit b116d4c

Please sign in to comment.