initial code for working with openrouter

This commit is contained in:
JV 2023-08-15 03:35:55 +12:00 committed by Joshua Vial
parent 8c580dd332
commit 041f3a4a38
11 changed files with 99 additions and 26 deletions

View file

@ -5,7 +5,6 @@ import sys
from pathlib import Path
import git
import tiktoken
from prompt_toolkit.completion import Completion
from aider import prompts, voice
@ -24,7 +23,7 @@ class Commands:
voice_language = None
self.voice_language = voice_language
self.tokenizer = tiktoken.encoding_for_model(coder.main_model.name)
self.tokenizer = coder.main_model.tokenizer
def is_command(self, inp):
if inp[0] == "/":