mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 21:04:59 +00:00
feat: Add test case for --4o and --cache options
This commit is contained in:
parent
d71ea571e4
commit
621f91cfee
1 changed files with 12 additions and 0 deletions
|
@ -544,3 +544,15 @@ class TestMain(TestCase):
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertTrue(coder.add_cache_headers)
|
self.assertTrue(coder.add_cache_headers)
|
||||||
|
|
||||||
|
def test_4o_and_cache_options(self):
|
||||||
|
with GitTemporaryDirectory():
|
||||||
|
coder = main(
|
||||||
|
["--4o", "--cache", "--exit", "--yes"],
|
||||||
|
input=DummyInput(),
|
||||||
|
output=DummyOutput(),
|
||||||
|
return_coder=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.assertFalse(coder.add_cache_headers)
|
||||||
|
self.assertEqual(coder.main_model.name, "gpt-4-1106-preview")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue