mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-17 22:55:10 +08:00
chore: set shared tool-sieve context tail window to 2048
This commit is contained in:
@@ -34,7 +34,8 @@ type toolCallDelta struct {
|
|||||||
Arguments string
|
Arguments string
|
||||||
}
|
}
|
||||||
|
|
||||||
const toolSieveContextTailLimit = 256
|
// Keep in sync with JS TOOL_SIEVE_CONTEXT_TAIL_LIMIT.
|
||||||
|
const toolSieveContextTailLimit = 2048
|
||||||
|
|
||||||
func (s *toolStreamSieveState) resetIncrementalToolState() {
|
func (s *toolStreamSieveState) resetIncrementalToolState() {
|
||||||
s.disableDeltas = false
|
s.disableDeltas = false
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const TOOL_SIEVE_CONTEXT_TAIL_LIMIT = 256;
|
// Keep in sync with Go toolSieveContextTailLimit.
|
||||||
|
const TOOL_SIEVE_CONTEXT_TAIL_LIMIT = 2048;
|
||||||
|
|
||||||
function createToolSieveState() {
|
function createToolSieveState() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user