@@ -11,10 +11,7 @@ export enum BingConversationStyle {
1111
1212export enum ChatGPTMode {
1313 Webapp = 'webapp' ,
14- API = 'api' ,
15- Azure = 'azure' ,
16- Poe = 'poe' ,
17- OpenRouter = 'openrouter' ,
14+ API = 'api'
1815}
1916
2017export enum ChatGPTWebModel {
@@ -35,16 +32,32 @@ export enum PoeClaudeModel {
3532
3633export enum ClaudeMode {
3734 Webapp = 'webapp' ,
38- API = 'api' ,
39- Poe = 'poe' ,
40- OpenRouter = 'openrouter' ,
35+ API = 'api'
4136}
4237
4338export enum ClaudeAPIModel {
44- 'claude-2' = 'claude-2' ,
45- 'claude-instant-1' = 'claude-instant-v1' ,
39+ 'claude-instant-1' = 'claude-instant-1.2' ,
40+ 'claude-2' = 'claude-2.1' ,
41+ 'claude-3-sonnet' = 'claude-3-sonnet-20240229' ,
42+ 'claude-3-opus' = 'claude-3-opus-20240229'
43+ }
44+
45+ export enum OllamaAPIModel {
46+ 'Llama 3 8B ' = 'llama3' ,
47+ 'Llama 3 70B' = 'llama3:70b' ,
48+ 'Phi-3 3.8B ' = 'phi3' ,
49+ 'Mistral 7B ' = 'mistral' ,
50+ 'Neural Chat 7B ' = 'neural-chat' ,
51+ 'Starling 7B ' = 'starling-lm' ,
52+ 'Code Llama 7B ' = 'codellama' ,
53+ 'Llama 2 Uncensored 7B ' = 'llama2-uncensored' ,
54+ 'LLaVA 7B ' = 'llava' ,
55+ 'Gemma 2B ' = 'gemma:2b' ,
56+ 'Gemma 7B ' = 'gemma:7b' ,
57+ 'Solar 10.7B' = 'solar'
4658}
4759
60+
4861export enum OpenRouterClaudeModel {
4962 'claude-2' = 'claude-2' ,
5063 'claude-instant-v1' = 'claude-instant-v1' ,
@@ -59,19 +72,20 @@ const userConfigWithDefaultValue = {
5972 chatgptMode : ChatGPTMode . Webapp ,
6073 chatgptWebappModelName : ChatGPTWebModel [ 'GPT-3.5' ] ,
6174 chatgptPoeModelName : PoeGPTModel [ 'GPT-3.5' ] ,
62- startupPage : "chatgpt" ,
6375 bingConversationStyle : BingConversationStyle . Balanced ,
6476 poeModel : PoeClaudeModel [ 'claude-instant' ] ,
6577 azureOpenAIApiKey : '' ,
6678 azureOpenAIApiInstanceName : '' ,
6779 azureOpenAIApiDeploymentName : '' ,
68- enabledBots : Object . keys ( CHATBOTS ) . slice ( 0 , 8 ) as BotId [ ] ,
80+ enabledBots : Object . keys ( CHATBOTS ) as BotId [ ] ,
6981 claudeApiKey : '' ,
70- claudeMode : ClaudeMode . Poe ,
82+ claudeMode : ClaudeMode . API ,
7183 claudeApiModel : ClaudeAPIModel [ 'claude-2' ] ,
7284 openrouterOpenAIModel : CHATGPT_API_MODELS [ 0 ] as ( typeof CHATGPT_API_MODELS ) [ number ] ,
7385 openrouterClaudeModel : OpenRouterClaudeModel [ 'claude-2' ] ,
7486 openrouterApiKey : '' ,
87+ ollamaApi : 'http://localhost:11434/api/chat' ,
88+ ollamaModel : 'llama3'
7589}
7690
7791export type UserConfig = typeof userConfigWithDefaultValue
@@ -93,12 +107,6 @@ export async function getUserConfig(): Promise<UserConfig> {
93107 if ( result . chatgptApiModel === 'gpt-3.5-turbo-16k' ) {
94108 result . chatgptApiModel = 'gpt-3.5-turbo'
95109 }
96- if (
97- result . claudeApiModel !== ClaudeAPIModel [ 'claude-2' ] ||
98- result . claudeApiModel !== ClaudeAPIModel [ 'claude-instant-1' ]
99- ) {
100- result . claudeApiModel = ClaudeAPIModel [ 'claude-2' ]
101- }
102110 return defaults ( result , userConfigWithDefaultValue )
103111}
104112
0 commit comments