fix(ci): repair lint/build checks

This commit is contained in:
Peter Steinberger
2026-02-01 10:20:27 +00:00
parent 9d9378436b
commit e4f7155369
4 changed files with 16 additions and 3 deletions

View File

@@ -21,6 +21,9 @@ export function resolveExtraParams(params: {
}
type CacheRetention = "none" | "short" | "long";
type CacheRetentionStreamOptions = Partial<SimpleStreamOptions> & {
cacheRetention?: CacheRetention;
};
/**
* Resolve cacheRetention from extraParams, supporting both new `cacheRetention`
@@ -65,7 +68,7 @@ function createStreamFnWithExtraParams(
return undefined;
}
const streamParams: Partial<SimpleStreamOptions> = {};
const streamParams: CacheRetentionStreamOptions = {};
if (typeof extraParams.temperature === "number") {
streamParams.temperature = extraParams.temperature;
}