refactored litellm to avoid duplicating workarounds

This commit is contained in:
Paul Gauthier 2024-05-08 08:05:15 -07:00
parent b249177119
commit 9ff6770a04
6 changed files with 7 additions and 20 deletions

View file

@ -11,7 +11,6 @@ from json.decoder import JSONDecodeError
from pathlib import Path
import git
import litellm
import openai
from jsonschema import Draft7Validator
from rich.console import Console, Text
@ -21,6 +20,7 @@ from aider import __version__, models, prompts, utils
from aider.commands import Commands
from aider.history import ChatSummary
from aider.io import InputOutput
from aider.litellm import litellm
from aider.mdstream import MarkdownStream
from aider.repo import GitRepo
from aider.repomap import RepoMap
@ -29,8 +29,6 @@ from aider.utils import is_image_file
from ..dump import dump # noqa: F401
litellm.suppress_debug_info = True
class MissingAPIKeyError(ValueError):
pass