We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d54d9a6 commit b4bc819Copy full SHA for b4bc819
playground/nuxt.config.ts
@@ -10,6 +10,7 @@ export default defineNuxtConfig({
10
module
11
],
12
hub: {
13
+ ai: true,
14
database: true,
15
kv: true,
16
blob: true,
playground/server/api/ai.ts
@@ -0,0 +1,6 @@
1
+export default defineEventHandler(async () => {
2
+ const ai = hubAi()
3
+ return await ai.run('@cf/meta/llama-2-7b-chat-int8', {
4
+ prompt: 'Who is the author of Nuxt?'
5
+ })
6
+})
0 commit comments