mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
Merge branch 'main' into sitter-map
This commit is contained in:
commit
c9685ebca1
3 changed files with 1 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
|||
import argparse
|
||||
import json
|
||||
|
||||
import tiktoken
|
||||
|
||||
from aider import models, prompts
|
||||
from aider.dump import dump # noqa: F401
|
||||
from aider.sendchat import simple_send_with_retries
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
from .model import Model
|
||||
from .openai import OpenAIModel
|
||||
from .openrouter import OpenRouterModel
|
||||
|
||||
GPT4 = Model.create("gpt-4")
|
||||
GPT35 = Model.create("gpt-3.5-turbo")
|
||||
|
|
|
@ -23,7 +23,7 @@ class OpenRouterModel(Model):
|
|||
self.tokenizer = tiktoken.get_encoding("cl100k_base")
|
||||
|
||||
global cached_model_details
|
||||
if cached_model_details == None:
|
||||
if cached_model_details is None:
|
||||
cached_model_details = openai.Model.list().data
|
||||
found = next(
|
||||
(details for details in cached_model_details if details.get("id") == name), None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue