mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-16 03:42:21 +03:00
⭐5 — OpenCode config: limit.context default 128k quando metadata de catálogo desconhecida (#11035/#11032); limit emitido por model entry. TDD, suíte aberta limpa.
This commit is contained in:
@@ -57,10 +57,19 @@ export const buildOpenCodeProviderConfig = ({
|
||||
? normalizedModels
|
||||
: [...new Set([normalizedModel, ...OPENCODE_DEFAULT_MODELS].filter(Boolean))];
|
||||
|
||||
const modelsRecord: Record<string, { name: string }> = {};
|
||||
const modelsRecord: Record<
|
||||
string,
|
||||
{ name: string; limit: { context: number; output: number } }
|
||||
> = {};
|
||||
for (const m of uniqueModels) {
|
||||
if (m) {
|
||||
modelsRecord[m] = { name: getModelEntryName(m, normalizedLabels) };
|
||||
modelsRecord[m] = {
|
||||
name: getModelEntryName(m, normalizedLabels),
|
||||
limit: {
|
||||
context: 128_000,
|
||||
output: 8_192,
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user