Add GPT-4 support (#25)
* mobile ui updates * fixes sidebar btn * return if null * mobile input blur * handle mobile enter key * new convo name * new delete mechanism * test height * revert * change padding * remove overflow * check relative * padding * done * retry * test * test * should work now * test * test * more * max h * revert * done
This commit is contained in:
+26
-8
@@ -1,13 +1,22 @@
|
||||
export enum OpenAIModel {
|
||||
GPT_3_5 = "gpt-3.5-turbo",
|
||||
GPT_3_5_LEGACY = "gpt-3.5-turbo-0301"
|
||||
// GPT_4 = "gpt-4"
|
||||
export interface OpenAIModel {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export const OpenAIModelNames: Record<OpenAIModel, string> = {
|
||||
[OpenAIModel.GPT_3_5]: "Default (GPT-3.5)",
|
||||
[OpenAIModel.GPT_3_5_LEGACY]: "Legacy (GPT-3.5)"
|
||||
// [OpenAIModel.GPT_4]: "GPT-4"
|
||||
export enum OpenAIModelID {
|
||||
GPT_3_5 = "gpt-3.5-turbo",
|
||||
GPT_4 = "gpt-4"
|
||||
}
|
||||
|
||||
export const OpenAIModels: Record<OpenAIModelID, OpenAIModel> = {
|
||||
[OpenAIModelID.GPT_3_5]: {
|
||||
id: OpenAIModelID.GPT_3_5,
|
||||
name: "Default (GPT-3.5)"
|
||||
},
|
||||
[OpenAIModelID.GPT_4]: {
|
||||
id: OpenAIModelID.GPT_4,
|
||||
name: "GPT-4"
|
||||
}
|
||||
};
|
||||
|
||||
export interface Message {
|
||||
@@ -21,4 +30,13 @@ export interface Conversation {
|
||||
id: number;
|
||||
name: string;
|
||||
messages: Message[];
|
||||
model: OpenAIModel;
|
||||
}
|
||||
|
||||
// keep track of local storage schema
|
||||
export interface LocalStorage {
|
||||
apiKey: string;
|
||||
conversationHistory: Conversation[];
|
||||
selectedConversation: Conversation;
|
||||
theme: "light" | "dark";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user