-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
64 lines (64 loc) · 1.96 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: ['@nuxt/eslint', 'nitro-cloudflare-dev', '@nuxthub/core'],
hub: {
ai: true
},
eslint: {
config: {
stylistic: true,
},
},
runtimeConfig: {
cfAccountId: '',
cfApiToken: '',
public: {
cfWorkerAiModel: '@cf/meta/llama-3.1-70b-instruct',
maxContextLength: 112000,
},
systemPrompt:
'You are a helpful assistant that summarizes a text. Respond with the summary in around 100 words only and nothing else.',
},
app: {
head: {
title: 'AI Text Summarizer',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
'An AI-powered text summarization tool using Cloudflare Workers AI',
},
{ name: 'format-detection', content: 'telephone=no' },
// Open Graph / Facebook
{ property: 'og:type', content: 'website' },
{ property: 'og:title', content: 'AI Text Summarizer' },
{
property: 'og:description',
content:
'An AI-powered text summarization tool using Cloudflare Workers AI',
},
{ property: 'og:image', content: '/pdf-summarizer.png' },
// Twitter
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:title', content: 'AI Text Summarizer' },
{
name: 'twitter:description',
content:
'An AI-powered text summarization tool using Cloudflare Workers AI',
},
{ name: 'twitter:image', content: '/pdf-summarizer.png' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: 'stylesheet',
href: 'https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css',
},
],
},
},
})