Merge branch 'main' into sitter-map

This commit is contained in:
Paul Gauthier 2023-09-01 15:56:20 -07:00
commit c9685ebca1
3 changed files with 1 additions and 5 deletions

View file

@ -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

View file

@ -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")

View file

@ -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