refactor: llm client api

This commit is contained in:
Yidadaa
2023-05-14 23:00:17 +08:00
parent 6da3aab046
commit bd90caa99d
8 changed files with 279 additions and 22 deletions

View File

@@ -14,6 +14,7 @@ import { showToast } from "../components/ui-lib";
import { ModelType } from "./config";
import { createEmptyMask, Mask } from "./mask";
import { StoreKey } from "../constant";
import { api } from "../client/api";
export type Message = ChatCompletionResponseMessage & {
date: string;