-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use
gpt-4o-mini
for title generation by default
feat: support more customizable parameters
- Loading branch information
1 parent
5bd1ba4
commit c9a1575
Showing
3 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { OpenAI } from 'openai' | ||
import { openaiBaseUrl } from './constants' | ||
export const openai = new OpenAI({ apiKey: import.meta.env.OPENAI_API_KEY ?? '', baseURL: `${openaiBaseUrl}/v1`, timeout: 10000, maxRetries: 5 }) | ||
export const openai = new OpenAI({ apiKey: import.meta.env.OPENAI_API_KEY ?? '', baseURL: openaiBaseUrl, timeout: 10000, maxRetries: 5 }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export const openaiBaseUrl = (import.meta.env.OPENAI_API_BASE_URL || 'https://api.openai.com').trim().replace(/\/$/, '') | ||
export const openaiBaseUrl = (import.meta.env.OPENAI_BASE_URL ?? `${(import.meta.env.OPENAI_API_BASE_URL ?? 'https://api.openai.com').trim().replace(/\/$/, '')}/v1`).trim().replace(/\/$/, '') | ||
export const promplateBaseUrl = import.meta.env.PUBLIC_PROMPLATE_DEMO_BASE_URL.replace(/\/$/, '') |
c9a1575
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
endless-chat – ./
e3.free-chat.asia
e1.frechat.xyz
e2.free-chat.asia
e4.frechat.xyz
e3.frechat.xyz
e2.frechat.xyz
e1.free-chat.asia
e4.free-chat.asia
c1.muspimerol.site
e5.free-chat.asia
c2.muspimerol.site
endless-chat-promplate.vercel.app
endless.free-chat.asia
e1.muspimerol.site
endless-chat.vercel.app
endless-chat-git-promplate-demo-promplate.vercel.app