mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 17:43:58 +01:00
Custom configuration
This commit is contained in:
parent
12a73d399a
commit
49d7744790
|
@ -3,9 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<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="https://i.ibb.co/3TN9CRm/image.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" />
|
|
||||||
<meta property="og:image" content="https://i.ibb.co/sRkYRTr/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 name="twitter:image" content="https://i.ibb.co/sRkYRTr/image.png" />
|
||||||
<meta
|
<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",
|
"export": "Eksporter",
|
||||||
"author": "Lavet af Jing Hua",
|
"author": "Lavet af Jing Hua",
|
||||||
"about": "Om & Sponsor",
|
"about": "Om & Sponsor",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personlig",
|
"personal": "Personlig",
|
||||||
"free": "Gratis",
|
"free": "Gratis",
|
||||||
"downloadChat": "Download chat",
|
"downloadChat": "Download chat",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"configuration": "Konfiguration",
|
"configuration": "Konfiguration",
|
||||||
"model": "Model",
|
"model": "Model",
|
||||||
"token": {
|
"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."
|
"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",
|
"default": "Standard",
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
"clearConversation": "Chat-Verlauf löschen.",
|
"clearConversation": "Chat-Verlauf löschen.",
|
||||||
"import": "Importieren",
|
"import": "Importieren",
|
||||||
"export": "Exportieren",
|
"export": "Exportieren",
|
||||||
"author": "Made by Jing Hua",
|
"author": "Made by Jing Hua + NovaOSS",
|
||||||
"about": "Über uns & Sponsor",
|
"about": "Über uns & Sponsor",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Persönlich",
|
"personal": "Persönlich",
|
||||||
"free": "Kostenlos",
|
"free": "Kostenlos",
|
||||||
"downloadChat": "Chat downloaden",
|
"downloadChat": "Chat downloaden",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"configuration": "Konfiguration",
|
"configuration": "Konfiguration",
|
||||||
"model": "Model",
|
"model": "Model",
|
||||||
"token": {
|
"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."
|
"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",
|
"default": "Standardwert",
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
"clearConversation": "Clear Conversation History",
|
"clearConversation": "Clear Conversation History",
|
||||||
"import": "Import",
|
"import": "Import",
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
"author": "Made by Jing Hua",
|
"author": "Made by Jing Hua + NovaOSS",
|
||||||
"about": "About & Sponsor",
|
"about": "About & Sponsor",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personal",
|
"personal": "Personal",
|
||||||
"free": "Free",
|
"free": "Free",
|
||||||
"downloadChat": "Download Chat",
|
"downloadChat": "Download Chat",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"configuration": "Configuration",
|
"configuration": "Configuration",
|
||||||
"model": "Model",
|
"model": "Model",
|
||||||
"token": {
|
"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."
|
"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",
|
"default": "Default",
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
"clearConversation": "Clear Conversation History",
|
"clearConversation": "Clear Conversation History",
|
||||||
"import": "Import",
|
"import": "Import",
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
"author": "Made by Jing Hua",
|
"author": "Made by Jing Hua + NovaOSS",
|
||||||
"about": "About & Sponsor",
|
"about": "About & Sponsor",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personal",
|
"personal": "Personal",
|
||||||
"free": "Free",
|
"free": "Free",
|
||||||
"downloadChat": "Download Chat",
|
"downloadChat": "Download Chat",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"configuration": "Configuration",
|
"configuration": "Configuration",
|
||||||
"model": "Model",
|
"model": "Model",
|
||||||
"token": {
|
"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."
|
"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",
|
"default": "Default",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "Exportar",
|
"export": "Exportar",
|
||||||
"author": "Hecho por Jing Hua",
|
"author": "Hecho por Jing Hua",
|
||||||
"about": "Acerca de y Patrocinadores",
|
"about": "Acerca de y Patrocinadores",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personal",
|
"personal": "Personal",
|
||||||
"free": "Gratuito",
|
"free": "Gratuito",
|
||||||
"downloadChat": "Descargar conversación",
|
"downloadChat": "Descargar conversación",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "Exporter",
|
"export": "Exporter",
|
||||||
"author": "Créé par Jing Hua",
|
"author": "Créé par Jing Hua",
|
||||||
"about": "À propos et Sponsor",
|
"about": "À propos et Sponsor",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personnel",
|
"personal": "Personnel",
|
||||||
"free": "Gratuit",
|
"free": "Gratuit",
|
||||||
"downloadChat": "Télécharger la conversation",
|
"downloadChat": "Télécharger la conversation",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"configuration": "Configuration",
|
"configuration": "Configuration",
|
||||||
"model": "Modèle",
|
"model": "Modèle",
|
||||||
"token": {
|
"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."
|
"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",
|
"default": "Défaut",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "Esporta",
|
"export": "Esporta",
|
||||||
"author": "Realizzato da Jing Hua",
|
"author": "Realizzato da Jing Hua",
|
||||||
"about": "Info & Sponsor",
|
"about": "Info & Sponsor",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personale",
|
"personal": "Personale",
|
||||||
"free": "Gratuito",
|
"free": "Gratuito",
|
||||||
"downloadChat": "Scarica Conversazione",
|
"downloadChat": "Scarica Conversazione",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "エクスポート",
|
"export": "エクスポート",
|
||||||
"author": "Jing Hua作",
|
"author": "Jing Hua作",
|
||||||
"about": "概要 & スポンサー",
|
"about": "概要 & スポンサー",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "個人",
|
"personal": "個人",
|
||||||
"free": "無料",
|
"free": "無料",
|
||||||
"downloadChat": "チャットをダウンロード",
|
"downloadChat": "チャットをダウンロード",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "Eksport",
|
"export": "Eksport",
|
||||||
"author": "Dibuat oleh Jing Hua",
|
"author": "Dibuat oleh Jing Hua",
|
||||||
"about": "Mengenai & Penaja",
|
"about": "Mengenai & Penaja",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Peribadi",
|
"personal": "Peribadi",
|
||||||
"free": "Percuma",
|
"free": "Percuma",
|
||||||
"downloadChat": "Muat Turun Perbualan",
|
"downloadChat": "Muat Turun Perbualan",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "Eksporter",
|
"export": "Eksporter",
|
||||||
"author": "Laget av Jing Hua",
|
"author": "Laget av Jing Hua",
|
||||||
"about": "Om & Sponsor",
|
"about": "Om & Sponsor",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personlig",
|
"personal": "Personlig",
|
||||||
"free": "Gratis",
|
"free": "Gratis",
|
||||||
"downloadChat": "Last ned Chat",
|
"downloadChat": "Last ned Chat",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
"author": "Făcut de Jing Hua",
|
"author": "Făcut de Jing Hua",
|
||||||
"about": "Despre și sponsorizează",
|
"about": "Despre și sponsorizează",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personal",
|
"personal": "Personal",
|
||||||
"free": "Gratuit",
|
"free": "Gratuit",
|
||||||
"downloadChat": "Descărcați chat",
|
"downloadChat": "Descărcați chat",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "Экспорт",
|
"export": "Экспорт",
|
||||||
"author": "Автор: Jing Hua",
|
"author": "Автор: Jing Hua",
|
||||||
"about": "О программе и спонсоре",
|
"about": "О программе и спонсоре",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Личный",
|
"personal": "Личный",
|
||||||
"free": "Бесплатный",
|
"free": "Бесплатный",
|
||||||
"downloadChat": "Скачать чат",
|
"downloadChat": "Скачать чат",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "Exportera",
|
"export": "Exportera",
|
||||||
"author": "Skapad av Jing Hua",
|
"author": "Skapad av Jing Hua",
|
||||||
"about": "Om & Sponsor",
|
"about": "Om & Sponsor",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "Personlig",
|
"personal": "Personlig",
|
||||||
"free": "Gratis",
|
"free": "Gratis",
|
||||||
"downloadChat": "Ladda ner chatt",
|
"downloadChat": "Ladda ner chatt",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"configuration": "Konfiguration",
|
"configuration": "Konfiguration",
|
||||||
"model": "Modell",
|
"model": "Modell",
|
||||||
"token": {
|
"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."
|
"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",
|
"default": "Standard",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "导出",
|
"export": "导出",
|
||||||
"author": "由 Jing Hua 制作",
|
"author": "由 Jing Hua 制作",
|
||||||
"about": "关于和赞助",
|
"about": "关于和赞助",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "个人",
|
"personal": "个人",
|
||||||
"free": "免费",
|
"free": "免费",
|
||||||
"downloadChat": "下载聊天记录",
|
"downloadChat": "下载聊天记录",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "匯出",
|
"export": "匯出",
|
||||||
"author": "由 Jing Hua 製作",
|
"author": "由 Jing Hua 製作",
|
||||||
"about": "關於同贊助",
|
"about": "關於同贊助",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "個人",
|
"personal": "個人",
|
||||||
"free": "免費",
|
"free": "免費",
|
||||||
"downloadChat": "儲存傾偈記錄",
|
"downloadChat": "儲存傾偈記錄",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"export": "匯出",
|
"export": "匯出",
|
||||||
"author": "由 Jing Hua 製作",
|
"author": "由 Jing Hua 製作",
|
||||||
"about": "關於和贊助",
|
"about": "關於和贊助",
|
||||||
"api": "API",
|
"api": "API Configuration",
|
||||||
"personal": "個人",
|
"personal": "個人",
|
||||||
"free": "免費",
|
"free": "免費",
|
||||||
"downloadChat": "下載聊天記錄",
|
"downloadChat": "下載聊天記錄",
|
||||||
|
|
|
@ -99,7 +99,7 @@ const ApiMenu = ({
|
||||||
ns='api'
|
ns='api'
|
||||||
components={[
|
components={[
|
||||||
<a
|
<a
|
||||||
href='https://platform.openai.com/account/api-keys'
|
href='https://nova-oss.com/'
|
||||||
className='link'
|
className='link'
|
||||||
target='_blank'
|
target='_blank'
|
||||||
/>,
|
/>,
|
||||||
|
|
|
@ -61,7 +61,7 @@ const ApiPopup = () => {
|
||||||
ns='api'
|
ns='api'
|
||||||
components={[
|
components={[
|
||||||
<a
|
<a
|
||||||
href='https://platform.openai.com/account/api-keys'
|
href='https://nova-oss.com/'
|
||||||
className='link'
|
className='link'
|
||||||
target='_blank'
|
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 =
|
const customAPIEndpoint =
|
||||||
import.meta.env.VITE_CUSTOM_API_ENDPOINT || 'https://chatgpt-api.shn.hk/v1/';
|
import.meta.env.VITE_CUSTOM_API_ENDPOINT || 'https://chatgpt-api.shn.hk/v1/';
|
||||||
export const defaultAPIEndpoint =
|
export const defaultAPIEndpoint =
|
||||||
|
|
|
@ -13,7 +13,7 @@ const dateString =
|
||||||
// default system message obtained using the following method: https://twitter.com/DeminDimin/status/1619935545144279040
|
// default system message obtained using the following method: https://twitter.com/DeminDimin/status/1619935545144279040
|
||||||
export const _defaultSystemMessage =
|
export const _defaultSystemMessage =
|
||||||
import.meta.env.VITE_DEFAULT_SYSTEM_MESSAGE ??
|
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.
|
Carefully heed the user's instructions.
|
||||||
Respond using Markdown.`;
|
Respond using Markdown.`;
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ export const modelOptions: ModelOptions[] = [
|
||||||
'gpt-3.5-turbo-16k',
|
'gpt-3.5-turbo-16k',
|
||||||
'gpt-4',
|
'gpt-4',
|
||||||
'gpt-4-32k',
|
'gpt-4-32k',
|
||||||
// 'gpt-3.5-turbo-0301',
|
'gpt-3.5-turbo-0301',
|
||||||
// 'gpt-4-0314',
|
'gpt-4-0314',
|
||||||
// 'gpt-4-32k-0314',
|
'gpt-4-32k-0314',
|
||||||
];
|
];
|
||||||
|
|
||||||
export const defaultModel = 'gpt-3.5-turbo';
|
export const defaultModel = 'gpt-3.5-turbo';
|
||||||
|
@ -95,7 +95,7 @@ export const defaultUserMaxToken = 4000;
|
||||||
export const _defaultChatConfig: ConfigInterface = {
|
export const _defaultChatConfig: ConfigInterface = {
|
||||||
model: defaultModel,
|
model: defaultModel,
|
||||||
max_tokens: defaultUserMaxToken,
|
max_tokens: defaultUserMaxToken,
|
||||||
temperature: 1,
|
temperature: 0.4,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
top_p: 1,
|
top_p: 1,
|
||||||
frequency_penalty: 0,
|
frequency_penalty: 0,
|
||||||
|
|
|
@ -49,10 +49,10 @@ export interface Folder {
|
||||||
color?: string;
|
color?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ModelOptions = 'gpt-4' | 'gpt-4-32k' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' ;
|
export type ModelOptions = 'gpt-4' | 'gpt-4-32k' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k'
|
||||||
// | 'gpt-3.5-turbo-0301';
|
| 'gpt-3.5-turbo-0301'
|
||||||
// | 'gpt-4-0314'
|
| 'gpt-4-0314'
|
||||||
// | 'gpt-4-32k-0314'
|
| 'gpt-4-32k-0314';
|
||||||
|
|
||||||
export type TotalTokenUsed = {
|
export type TotalTokenUsed = {
|
||||||
[model in ModelOptions]?: {
|
[model in ModelOptions]?: {
|
||||||
|
|
Loading…
Reference in a new issue