mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: Move RETRY_TIMEOUT constant to models.py
This commit is contained in:
parent
faa438bc51
commit
74da63e3ca
3 changed files with 3 additions and 4 deletions
|
@ -30,7 +30,7 @@ from aider.llm import litellm
|
||||||
from aider.repo import ANY_GIT_ERROR, GitRepo
|
from aider.repo import ANY_GIT_ERROR, GitRepo
|
||||||
from aider.repomap import RepoMap
|
from aider.repomap import RepoMap
|
||||||
from aider.run_cmd import run_cmd
|
from aider.run_cmd import run_cmd
|
||||||
from aider.sendchat import RETRY_TIMEOUT
|
from aider.models import RETRY_TIMEOUT
|
||||||
from aider.utils import format_content, format_messages, format_tokens, is_image_file
|
from aider.utils import format_content, format_messages, format_tokens, is_image_file
|
||||||
|
|
||||||
from ..dump import dump # noqa: F401
|
from ..dump import dump # noqa: F401
|
||||||
|
|
|
@ -18,11 +18,12 @@ from PIL import Image
|
||||||
from aider.dump import dump # noqa: F401
|
from aider.dump import dump # noqa: F401
|
||||||
from aider.llm import litellm
|
from aider.llm import litellm
|
||||||
from aider.sendchat import (
|
from aider.sendchat import (
|
||||||
RETRY_TIMEOUT,
|
|
||||||
ensure_alternating_roles,
|
ensure_alternating_roles,
|
||||||
sanity_check_messages,
|
sanity_check_messages,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
RETRY_TIMEOUT = 60
|
||||||
|
|
||||||
DEFAULT_MODEL_NAME = "gpt-4o"
|
DEFAULT_MODEL_NAME = "gpt-4o"
|
||||||
ANTHROPIC_BETA_HEADER = "prompt-caching-2024-07-31,pdfs-2024-09-25"
|
ANTHROPIC_BETA_HEADER = "prompt-caching-2024-07-31,pdfs-2024-09-25"
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
from aider.dump import dump # noqa: F401
|
from aider.dump import dump # noqa: F401
|
||||||
from aider.utils import format_messages
|
from aider.utils import format_messages
|
||||||
|
|
||||||
RETRY_TIMEOUT = 60
|
|
||||||
|
|
||||||
|
|
||||||
def sanity_check_messages(messages):
|
def sanity_check_messages(messages):
|
||||||
"""Check if messages alternate between user and assistant roles.
|
"""Check if messages alternate between user and assistant roles.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue