Skip to content

Commit c19d090

Browse files
committed
Exclude reasoning_effort from the API request body hash to improve request deduplication
- remove reasoning effort from body comparison
1 parent 1e01fa4 commit c19d090

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/editor/src/services/api-manager.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ export class ApiManager {
3030
const cancel_token_source = axios.CancelToken.source()
3131
this.cancel_token_sources.set(request_id, cancel_token_source)
3232

33+
const body_to_hash = { ...params.body }
34+
delete body_to_hash.reasoning_effort
35+
3336
const body_hash = createHash('md5')
34-
.update(JSON.stringify(params.body))
37+
.update(JSON.stringify(body_to_hash))
3538
.digest('hex')
3639

3740
const previous_waiting = this.waiting_chain.get(params.endpoint_url)

0 commit comments

Comments
 (0)