refine: tool schema descriptions, docstring format, context_win 18000→20000

This commit is contained in:
Liang Jiaqing
2026-03-29 13:06:06 +08:00
parent 45679509ea
commit fe7e4c0952
3 changed files with 6 additions and 8 deletions

View File

@@ -328,7 +328,7 @@ class ClaudeSession:
def __init__(self, cfg):
self.api_key = cfg['apikey']; self.api_base = cfg['apibase'].rstrip('/')
self.default_model = cfg.get('model', 'claude-opus')
self.context_win = cfg.get('context_win', 18000)
self.context_win = cfg.get('context_win', 20000)
self.raw_msgs, self.lock = [], threading.Lock()
self.system = ""
def _trim_messages(self, raw_msgs):
@@ -375,7 +375,7 @@ class LLMSession:
def __init__(self, cfg):
self.api_key = cfg['apikey']; self.api_base = cfg['apibase'].rstrip('/')
self.default_model = cfg['model']
self.context_win = cfg.get('context_win', 18000)
self.context_win = cfg.get('context_win', 20000)
self.raw_msgs, self.messages = [], []
proxy = cfg.get('proxy')
self.proxies = {"http": proxy, "https": proxy} if proxy else None