Skip to content

Commit 7b00027

Browse files
committed
feat: add example environment file and update provider defaults in route
1 parent 893ddc3 commit 7b00027

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
OPENAI_API_KEY="your-api-key"
2+
PROVIDER_NAME="Aigarth"
3+
PICTURE_PATH="your-picture-path"
4+
PROVIDER_DESCRIPTION="your-description"

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ yarn-error.log*
1717
.pnpm-debug.log*
1818

1919
# env files
20-
.env*
20+
.env
2121

2222
# vercel
2323
.vercel
2424

2525
# typescript
2626
*.tsbuildinfo
27-
next-env.d.ts
27+
next-env.d.ts

app/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NextResponse } from 'next/server';
22

33
export async function GET(request: Request) {
4-
const providerName = process.env.PROVIDER_NAME || 'Default Model Name';
4+
const providerName = process.env.PROVIDER_NAME || 'Agairth';
55
const picturePath = process.env.PICTURE_PATH || '/default/path/to/picture.png';
66
const providerDescription = process.env.PROVIDER_DESCRIPTION || 'Default provider description';
77

0 commit comments

Comments
 (0)