mirror of
https://github.com/run-llama/chat-llamaindex.git
synced 2026-07-01 21:04:08 -04:00
21 lines
417 B
TypeScript
21 lines
417 B
TypeScript
import { ModelType } from "../store";
|
|
import { LLMApi } from "./platforms/llm/interfaces";
|
|
import { OpenAIApi } from "./platforms/llm/openai";
|
|
export {
|
|
ROLES,
|
|
type LLMConfig,
|
|
type RequestMessage,
|
|
} from "./platforms/llm/interfaces";
|
|
|
|
export type ChatModel = ModelType;
|
|
|
|
export class ClientApi {
|
|
public llm: LLMApi;
|
|
|
|
constructor() {
|
|
this.llm = new OpenAIApi();
|
|
}
|
|
}
|
|
|
|
export const api = new ClientApi();
|