mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 15:41:34 +00:00
* feat: support GPT-5.6 Ultra across agent runtimes Co-authored-by: J Cai <anyech@gmail.com> * fix: keep harness projections discovery-free * fix(codex): mirror V2 native subagent tasks * chore: refresh plugin SDK surface budgets * test: expose Ultra wire effort proof * test(cron): avoid hoisted mock initialization race --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
22 lines
778 B
TypeScript
22 lines
778 B
TypeScript
import type { ProviderDefaultThinkingPolicyContext } from "openclaw/plugin-sdk/plugin-entry";
|
|
// Openai API module exposes the plugin public contract.
|
|
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-types";
|
|
import { resolveUnifiedOpenAIThinkingProfile } from "./thinking-policy.js";
|
|
|
|
export function normalizeConfig(params: { provider: string; providerConfig: ModelProviderConfig }) {
|
|
return params.providerConfig;
|
|
}
|
|
|
|
export function resolveThinkingProfile(params: ProviderDefaultThinkingPolicyContext) {
|
|
switch (params.provider.trim().toLowerCase()) {
|
|
case "openai":
|
|
return resolveUnifiedOpenAIThinkingProfile(
|
|
params.modelId,
|
|
params.agentRuntime,
|
|
params.compat,
|
|
);
|
|
default:
|
|
return null;
|
|
}
|
|
}
|