Files
oh-my-opencode/dist/plugin/chat-params.d.ts
T
2026-03-14 04:56:50 +00:00

28 lines
645 B
TypeScript

export type ChatParamsInput = {
sessionID: string;
agent: {
name?: string;
};
model: {
providerID: string;
modelID: string;
};
provider: {
id: string;
};
message: {
variant?: string;
};
};
export type ChatParamsOutput = {
temperature?: number;
topP?: number;
topK?: number;
options: Record<string, unknown>;
};
export declare function createChatParamsHandler(args: {
anthropicEffort: {
"chat.params"?: (input: ChatParamsInput, output: ChatParamsOutput) => Promise<void>;
} | null;
}): (input: unknown, output: unknown) => Promise<void>;