koishi-plugin-chatluna-openai-adapter
Version:
openai adapter for chatluna
15 lines (14 loc) • 575 B
TypeScript
import { ChatLunaPlugin } from 'koishi-plugin-chatluna/services/chat';
import { Context, Logger, Schema } from 'koishi';
export declare let logger: Logger;
export declare function apply(ctx: Context, config: Config): void;
export interface Config extends ChatLunaPlugin.Config {
apiKeys: [string, string, boolean][];
maxContextRatio: number;
temperature: number;
presencePenalty: number;
frequencyPenalty: number;
}
export declare const Config: Schema<Config>;
export declare const inject: string[];
export declare const name = "chatluna-openai-adapter";