mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
fix: Move importlib.resources import to top of file
This commit is contained in:
parent
0019a1f7dc
commit
e68191dcd9
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
import difflib
|
import difflib
|
||||||
|
import importlib.resources
|
||||||
import json
|
import json
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
|
@ -103,8 +104,6 @@ class ModelSettings:
|
||||||
remove_reasoning: Optional[str] = None
|
remove_reasoning: Optional[str] = None
|
||||||
|
|
||||||
|
|
||||||
import importlib.resources
|
|
||||||
|
|
||||||
# Load model settings from package resource
|
# Load model settings from package resource
|
||||||
MODEL_SETTINGS = []
|
MODEL_SETTINGS = []
|
||||||
with importlib.resources.open_text("aider.resources", "model-settings.yml") as f:
|
with importlib.resources.open_text("aider.resources", "model-settings.yml") as f:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue