diff --git a/index.html b/index.html index c8e53a7..704f263 100644 --- a/index.html +++ b/index.html @@ -3,9 +3,7 @@ - - - + , diff --git a/src/components/ApiPopup/ApiPopup.tsx b/src/components/ApiPopup/ApiPopup.tsx index 42f42ae..f53b48f 100644 --- a/src/components/ApiPopup/ApiPopup.tsx +++ b/src/components/ApiPopup/ApiPopup.tsx @@ -61,7 +61,7 @@ const ApiPopup = () => { ns='api' components={[ , diff --git a/src/constants/auth.ts b/src/constants/auth.ts index 195251e..4819bb6 100644 --- a/src/constants/auth.ts +++ b/src/constants/auth.ts @@ -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 = diff --git a/src/constants/chat.ts b/src/constants/chat.ts index 9676de0..3faf101 100644 --- a/src/constants/chat.ts +++ b/src/constants/chat.ts @@ -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, diff --git a/src/types/chat.ts b/src/types/chat.ts index 1b957e3..55f0eef 100644 --- a/src/types/chat.ts +++ b/src/types/chat.ts @@ -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]?: {