Skip to content

Commit 86cac44

Browse files
committed
Remove middle-out compression, which could be causing toolcall/toolresult pairing mismatch
1 parent 9a9ebca commit 86cac44

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sdk/src/impl/llm.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import {
55
getLiveUserInputIds,
66
} from '@codebuff/agent-runtime/live-user-inputs'
77
import { getByokOpenrouterApiKeyFromEnv } from '../env'
8-
import {
9-
BYOK_OPENROUTER_HEADER,
10-
} from '@codebuff/common/constants/byok'
8+
import { BYOK_OPENROUTER_HEADER } from '@codebuff/common/constants/byok'
119
import { models, PROFIT_MARGIN } from '@codebuff/common/old-constants'
1210
import { buildArray } from '@codebuff/common/util/array'
1311
import { getErrorObject } from '@codebuff/common/util/error'
@@ -115,7 +113,6 @@ function getProviderOptions(params: {
115113
client_id: clientSessionId,
116114
...(n && { n }),
117115
},
118-
transforms: ['middle-out'],
119116
provider: providerConfig,
120117
},
121118
}

0 commit comments

Comments
 (0)