mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
feat: Add safe_read_json and safe_write_json functions to aider/utils.py
This commit is contained in:
parent
fb812acfe1
commit
7f1f2cb7ba
2 changed files with 20 additions and 0 deletions
|
@ -5,7 +5,9 @@ import math
|
|||
import os
|
||||
import platform
|
||||
import sys
|
||||
import time
|
||||
from dataclasses import dataclass, fields
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
import yaml
|
||||
|
@ -14,6 +16,7 @@ from PIL import Image
|
|||
from aider import urls
|
||||
from aider.dump import dump # noqa: F401
|
||||
from aider.llm import AIDER_APP_NAME, AIDER_SITE_URL, litellm
|
||||
from aider.utils import safe_read_json, safe_write_json
|
||||
|
||||
DEFAULT_MODEL_NAME = "gpt-4o"
|
||||
ANTHROPIC_BETA_HEADER = "max-tokens-3-5-sonnet-2024-07-15,prompt-caching-2024-07-31"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue