Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor(opencode-go): localize stream internals
  • Loading branch information
vincentkoc committed Jul 7, 2026
commit f359a9ff950ba06ee587ed644ea06f2eb2868780
2 changes: 1 addition & 1 deletion extensions/opencode-go/provider-catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ const OPENCODE_GO_MODELS = (
] satisfies OpencodeGoModelDefinition[]
).map((model) => normalizeModelCompat(model) as OpencodeGoModelDefinition);

export type FetchOpencodeGoLiveModelIdsParams = {
type FetchOpencodeGoLiveModelIdsParams = {
apiKey?: string;
discoveryApiKey?: string;
fetchGuard?: LiveModelCatalogFetchGuard;
Expand Down
2 changes: 1 addition & 1 deletion extensions/opencode-go/stream-termination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { ProviderWrapStreamFnContext } from "openclaw/plugin-sdk/plugin-ent

type ProviderStreamFn = NonNullable<ProviderWrapStreamFnContext["streamFn"]>;

export interface OpencodeGoStalledStreamWrapperOptions {
interface OpencodeGoStalledStreamWrapperOptions {
/**
* Provider id this wrapper applies to. Calls whose model.provider does not
* match are forwarded untouched so the wrapper stays provider-scoped.
Expand Down
4 changes: 2 additions & 2 deletions extensions/opencode-go/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function isOpencodeGoDeepSeekV4ModelId(modelId: unknown): boolean {
return modelId === "deepseek-v4-flash" || modelId === "deepseek-v4-pro";
}

export function createOpencodeGoDeepSeekV4Wrapper(
function createOpencodeGoDeepSeekV4Wrapper(
baseStreamFn: ProviderWrapStreamFnContext["streamFn"],
thinkingLevel: ProviderWrapStreamFnContext["thinkingLevel"],
): ProviderWrapStreamFnContext["streamFn"] {
Expand All @@ -32,7 +32,7 @@ function stripReasoningParams(payloadObj: Record<string, unknown>): void {
stripOpencodeGoKimiReasoningPayload(payloadObj);
}

export function createOpencodeGoKimiNoReasoningWrapper(
function createOpencodeGoKimiNoReasoningWrapper(
baseStreamFn: ProviderWrapStreamFnContext["streamFn"],
): ProviderWrapStreamFnContext["streamFn"] {
if (!baseStreamFn) {
Expand Down
Loading