feat: add in prettier and format code for consistency (#168)

This commit is contained in:
Simon Holmes
2023-03-26 05:13:18 +00:00
committed by GitHub
parent b843f6e0e0
commit d6973b9ccc
72 changed files with 1140 additions and 4573 deletions
+11 -11
View File
@@ -4,19 +4,19 @@ export interface OpenAIModel {
}
export enum OpenAIModelID {
GPT_3_5 = "gpt-3.5-turbo",
GPT_4 = "gpt-4"
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)"
name: 'Default (GPT-3.5)',
},
[OpenAIModelID.GPT_4]: {
id: OpenAIModelID.GPT_4,
name: "GPT-4"
}
name: 'GPT-4',
},
};
export interface Message {
@@ -24,7 +24,7 @@ export interface Message {
content: string;
}
export type Role = "assistant" | "user";
export type Role = 'assistant' | 'user';
export interface ChatFolder {
id: number;
@@ -57,13 +57,13 @@ export interface LocalStorage {
apiKey: string;
conversationHistory: Conversation[];
selectedConversation: Conversation;
theme: "light" | "dark";
theme: 'light' | 'dark';
// added folders (3/23/23)
folders: ChatFolder[];
}
export interface ErrorMessage {
code: String | null,
title: String,
messageLines: String[]
}
code: String | null;
title: String;
messageLines: String[];
}