mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
initial code for working with openrouter
This commit is contained in:
parent
8c580dd332
commit
041f3a4a38
11 changed files with 99 additions and 26 deletions
|
@ -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] == "/":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue