mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 15:53:59 +01:00
Custom configuration
This commit is contained in:
parent
12a73d399a
commit
49d7744790
|
@ -3,9 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="https://i.ibb.co/3TN9CRm/image.png" />
|
||||
<meta property="og:image" content="https://i.ibb.co/sRkYRTr/image.png" />
|
||||
<meta name="twitter:image" content="https://i.ibb.co/sRkYRTr/image.png" />
|
||||
<meta
|
||||
|
|
|
@ -1 +1 @@
|
|||
bettergpt.chat
|
||||
chat.nova-oss.com
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB |
Binary file not shown.
Before Width: | Height: | Size: 73 KiB |
|
@ -11,7 +11,7 @@
|
|||
"export": "Eksporter",
|
||||
"author": "Lavet af Jing Hua",
|
||||
"about": "Om & Sponsor",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personlig",
|
||||
"free": "Gratis",
|
||||
"downloadChat": "Download chat",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"configuration": "Konfiguration",
|
||||
"model": "Model",
|
||||
"token": {
|
||||
"label": "Max Token",
|
||||
"label": "Max. Tokens",
|
||||
"description": "Det maksimale antal tokens der skal genereres i chat-fuldførelsen. Den samlede længde af input tokens og genererede tokens er begrænset af modellens kontekstlængde."
|
||||
},
|
||||
"default": "Standard",
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
"clearConversation": "Chat-Verlauf löschen.",
|
||||
"import": "Importieren",
|
||||
"export": "Exportieren",
|
||||
"author": "Made by Jing Hua",
|
||||
"author": "Made by Jing Hua + NovaOSS",
|
||||
"about": "Über uns & Sponsor",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Persönlich",
|
||||
"free": "Kostenlos",
|
||||
"downloadChat": "Chat downloaden",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"configuration": "Konfiguration",
|
||||
"model": "Model",
|
||||
"token": {
|
||||
"label": "Max Token",
|
||||
"label": "Max. Tokens",
|
||||
"description": "Die maximale Anzahl von Tokens, die bei der Chat-Vervollständigung generiert werden. Die Gesamtlänge der Eingabetokens und generierten Tokens wird durch die Kontextlänge des Modells begrenzt."
|
||||
},
|
||||
"default": "Standardwert",
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
"clearConversation": "Clear Conversation History",
|
||||
"import": "Import",
|
||||
"export": "Export",
|
||||
"author": "Made by Jing Hua",
|
||||
"author": "Made by Jing Hua + NovaOSS",
|
||||
"about": "About & Sponsor",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personal",
|
||||
"free": "Free",
|
||||
"downloadChat": "Download Chat",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"configuration": "Configuration",
|
||||
"model": "Model",
|
||||
"token": {
|
||||
"label": "Max Token",
|
||||
"label": "Max. Tokens",
|
||||
"description": "The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length."
|
||||
},
|
||||
"default": "Default",
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
"clearConversation": "Clear Conversation History",
|
||||
"import": "Import",
|
||||
"export": "Export",
|
||||
"author": "Made by Jing Hua",
|
||||
"author": "Made by Jing Hua + NovaOSS",
|
||||
"about": "About & Sponsor",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personal",
|
||||
"free": "Free",
|
||||
"downloadChat": "Download Chat",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"configuration": "Configuration",
|
||||
"model": "Model",
|
||||
"token": {
|
||||
"label": "Max Token",
|
||||
"label": "Max. Tokens",
|
||||
"description": "The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length."
|
||||
},
|
||||
"default": "Default",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "Exportar",
|
||||
"author": "Hecho por Jing Hua",
|
||||
"about": "Acerca de y Patrocinadores",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personal",
|
||||
"free": "Gratuito",
|
||||
"downloadChat": "Descargar conversación",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "Exporter",
|
||||
"author": "Créé par Jing Hua",
|
||||
"about": "À propos et Sponsor",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personnel",
|
||||
"free": "Gratuit",
|
||||
"downloadChat": "Télécharger la conversation",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"configuration": "Configuration",
|
||||
"model": "Modèle",
|
||||
"token": {
|
||||
"label": "Max Token",
|
||||
"label": "Max. Tokens",
|
||||
"description": "Le nombre maximum de jetons à générer dans la complétion de la conversation. La longueur totale des jetons d'entrée et des jetons générés est limitée par la longueur de contexte du modèle."
|
||||
},
|
||||
"default": "Défaut",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "Esporta",
|
||||
"author": "Realizzato da Jing Hua",
|
||||
"about": "Info & Sponsor",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personale",
|
||||
"free": "Gratuito",
|
||||
"downloadChat": "Scarica Conversazione",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "エクスポート",
|
||||
"author": "Jing Hua作",
|
||||
"about": "概要 & スポンサー",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "個人",
|
||||
"free": "無料",
|
||||
"downloadChat": "チャットをダウンロード",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "Eksport",
|
||||
"author": "Dibuat oleh Jing Hua",
|
||||
"about": "Mengenai & Penaja",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Peribadi",
|
||||
"free": "Percuma",
|
||||
"downloadChat": "Muat Turun Perbualan",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "Eksporter",
|
||||
"author": "Laget av Jing Hua",
|
||||
"about": "Om & Sponsor",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personlig",
|
||||
"free": "Gratis",
|
||||
"downloadChat": "Last ned Chat",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "Export",
|
||||
"author": "Făcut de Jing Hua",
|
||||
"about": "Despre și sponsorizează",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personal",
|
||||
"free": "Gratuit",
|
||||
"downloadChat": "Descărcați chat",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "Экспорт",
|
||||
"author": "Автор: Jing Hua",
|
||||
"about": "О программе и спонсоре",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Личный",
|
||||
"free": "Бесплатный",
|
||||
"downloadChat": "Скачать чат",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "Exportera",
|
||||
"author": "Skapad av Jing Hua",
|
||||
"about": "Om & Sponsor",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "Personlig",
|
||||
"free": "Gratis",
|
||||
"downloadChat": "Ladda ner chatt",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"configuration": "Konfiguration",
|
||||
"model": "Modell",
|
||||
"token": {
|
||||
"label": "Max Token",
|
||||
"label": "Max. Tokens",
|
||||
"description": "Det maximala antalet token att generera i chatkomplettering. Den totala längden på inmatade token och genererade token är begränsad av modellens kontextlängd."
|
||||
},
|
||||
"default": "Standard",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "导出",
|
||||
"author": "由 Jing Hua 制作",
|
||||
"about": "关于和赞助",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "个人",
|
||||
"free": "免费",
|
||||
"downloadChat": "下载聊天记录",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "匯出",
|
||||
"author": "由 Jing Hua 製作",
|
||||
"about": "關於同贊助",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "個人",
|
||||
"free": "免費",
|
||||
"downloadChat": "儲存傾偈記錄",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"export": "匯出",
|
||||
"author": "由 Jing Hua 製作",
|
||||
"about": "關於和贊助",
|
||||
"api": "API",
|
||||
"api": "API Configuration",
|
||||
"personal": "個人",
|
||||
"free": "免費",
|
||||
"downloadChat": "下載聊天記錄",
|
||||
|
|
|
@ -99,7 +99,7 @@ const ApiMenu = ({
|
|||
ns='api'
|
||||
components={[
|
||||
<a
|
||||
href='https://platform.openai.com/account/api-keys'
|
||||
href='https://nova-oss.com/'
|
||||
className='link'
|
||||
target='_blank'
|
||||
/>,
|
||||
|
|
|
@ -61,7 +61,7 @@ const ApiPopup = () => {
|
|||
ns='api'
|
||||
components={[
|
||||
<a
|
||||
href='https://platform.openai.com/account/api-keys'
|
||||
href='https://nova-oss.com/'
|
||||
className='link'
|
||||
target='_blank'
|
||||
/>,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const officialAPIEndpoint = 'https://api.openai.com/v1/chat/completions';
|
||||
export const officialAPIEndpoint = 'https://api.nova-oss.com/v1/chat/completions';
|
||||
const customAPIEndpoint =
|
||||
import.meta.env.VITE_CUSTOM_API_ENDPOINT || 'https://chatgpt-api.shn.hk/v1/';
|
||||
export const defaultAPIEndpoint =
|
||||
|
|
|
@ -13,7 +13,7 @@ const dateString =
|
|||
// default system message obtained using the following method: https://twitter.com/DeminDimin/status/1619935545144279040
|
||||
export const _defaultSystemMessage =
|
||||
import.meta.env.VITE_DEFAULT_SYSTEM_MESSAGE ??
|
||||
`You are ChatGPT, a large language model trained by OpenAI.
|
||||
`You are BetterChat, a large language model powered by NovaAI.
|
||||
Carefully heed the user's instructions.
|
||||
Respond using Markdown.`;
|
||||
|
||||
|
@ -22,9 +22,9 @@ export const modelOptions: ModelOptions[] = [
|
|||
'gpt-3.5-turbo-16k',
|
||||
'gpt-4',
|
||||
'gpt-4-32k',
|
||||
// 'gpt-3.5-turbo-0301',
|
||||
// 'gpt-4-0314',
|
||||
// 'gpt-4-32k-0314',
|
||||
'gpt-3.5-turbo-0301',
|
||||
'gpt-4-0314',
|
||||
'gpt-4-32k-0314',
|
||||
];
|
||||
|
||||
export const defaultModel = 'gpt-3.5-turbo';
|
||||
|
@ -95,7 +95,7 @@ export const defaultUserMaxToken = 4000;
|
|||
export const _defaultChatConfig: ConfigInterface = {
|
||||
model: defaultModel,
|
||||
max_tokens: defaultUserMaxToken,
|
||||
temperature: 1,
|
||||
temperature: 0.4,
|
||||
presence_penalty: 0,
|
||||
top_p: 1,
|
||||
frequency_penalty: 0,
|
||||
|
|
|
@ -49,10 +49,10 @@ export interface Folder {
|
|||
color?: string;
|
||||
}
|
||||
|
||||
export type ModelOptions = 'gpt-4' | 'gpt-4-32k' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' ;
|
||||
// | 'gpt-3.5-turbo-0301';
|
||||
// | 'gpt-4-0314'
|
||||
// | 'gpt-4-32k-0314'
|
||||
export type ModelOptions = 'gpt-4' | 'gpt-4-32k' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k'
|
||||
| 'gpt-3.5-turbo-0301'
|
||||
| 'gpt-4-0314'
|
||||
| 'gpt-4-32k-0314';
|
||||
|
||||
export type TotalTokenUsed = {
|
||||
[model in ModelOptions]?: {
|
||||
|
|
Loading…
Reference in a new issue