roughed in tokenizer, dropped openai, openrouter

This commit is contained in:
Paul Gauthier 2024-04-17 15:22:35 -07:00
parent 855e787175
commit c9bb22d6d5
6 changed files with 27 additions and 46 deletions

View file

@ -68,7 +68,7 @@ class Coder:
from . import EditBlockCoder, UnifiedDiffCoder, WholeFileCoder
if not main_model:
main_model = models.Model.create(models.DEFAULT_MODEL_NAME)
main_model = models.Model(models.DEFAULT_MODEL_NAME)
if edit_format is None:
edit_format = main_model.edit_format
@ -214,7 +214,7 @@ class Coder:
self.summarizer = ChatSummary(
self.client,
models.Model.weak_model(),
self.main_model.weak_model(),
self.main_model.max_chat_history_tokens,
)