Breaking change: openrouter_models.json -> custom_models.json
* Support for Custom URLs and custom models, including locally hosted models such as ollama * Support for native + openrouter + local models (i.e. dozens of models) means you can start delegating sub-tasks to particular models or work to local models such as localizations or other boring work etc. * Several tests added * precommit to also include untracked (new) files * Logfile auto rollover * Improved logging
This commit is contained in:
@@ -201,6 +201,7 @@ class TestPrecommitTool:
|
||||
"behind": 1,
|
||||
"staged_files": ["file1.py"],
|
||||
"unstaged_files": ["file2.py"],
|
||||
"untracked_files": [],
|
||||
}
|
||||
|
||||
# Mock git commands
|
||||
@@ -243,6 +244,7 @@ class TestPrecommitTool:
|
||||
"behind": 0,
|
||||
"staged_files": ["file1.py"],
|
||||
"unstaged_files": [],
|
||||
"untracked_files": [],
|
||||
}
|
||||
|
||||
# Mock git commands - need to match all calls in prepare_prompt
|
||||
@@ -288,6 +290,7 @@ class TestPrecommitTool:
|
||||
"behind": 0,
|
||||
"staged_files": ["file1.py"],
|
||||
"unstaged_files": [],
|
||||
"untracked_files": [],
|
||||
}
|
||||
|
||||
mock_run_git.side_effect = [
|
||||
|
||||
Reference in New Issue
Block a user