feat: add claude and bard

This commit is contained in:
Yidadaa
2023-11-07 23:22:11 +08:00
parent 5610f423d0
commit cdf0311d27
20 changed files with 580 additions and 394 deletions

View File

@@ -1,5 +1,3 @@
import { DEFAULT_MODELS } from "../constant";
export interface LLMUsage {
used: number;
total: number;
@@ -14,8 +12,6 @@ export interface LLMModel {
export const ROLES = ["system", "user", "assistant"] as const;
export type MessageRole = (typeof ROLES)[number];
export type ChatModel = (typeof DEFAULT_MODELS)[number]["name"];
export interface RequestMessage {
role: MessageRole;
content: string;