@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
23 lines (22 loc) • 875 B
TypeScript
import type { StreamFn } from "@mariozechner/pi-agent-core";
import type { OpenClawConfig } from "../../config/config.js";
/**
* Resolve provider-specific extra params from model config.
* Used to pass through stream params like temperature/maxTokens.
*
* @internal Exported for testing only
*/
export declare function resolveExtraParams(params: {
cfg: OpenClawConfig | undefined;
provider: string;
modelId: string;
}): Record<string, unknown> | undefined;
/**
* Apply extra params (like temperature) to an agent's streamFn.
* Also adds OpenRouter app attribution headers when using the OpenRouter provider.
*
* @internal Exported for testing
*/
export declare function applyExtraParamsToAgent(agent: {
streamFn?: StreamFn;
}, cfg: OpenClawConfig | undefined, provider: string, modelId: string, extraParamsOverride?: Record<string, unknown>): void;