mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
save model to ChatSummary
This commit is contained in:
parent
8fca0f27ee
commit
1fc2abe3d0
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ class ChatSummary:
|
|||
def __init__(self, model=models.GPT35.name, max_tokens=1024):
|
||||
self.tokenizer = tiktoken.encoding_for_model(model)
|
||||
self.max_tokens = max_tokens
|
||||
self.model = model
|
||||
|
||||
def too_big(self, messages):
|
||||
sized = self.tokenize(messages)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue