mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
test: add temperature validation for GitHub Copilot models
This commit is contained in:
parent
f3a228c79a
commit
4830d82a73
1 changed files with 9 additions and 0 deletions
|
@ -118,6 +118,15 @@ class TestModels(unittest.TestCase):
|
|||
model = Model("opus")
|
||||
self.assertEqual(model.name, "claude-3-opus-20240229")
|
||||
|
||||
# Test GitHub Copilot models
|
||||
model = Model("github/o1-mini")
|
||||
self.assertEqual(model.name, "github/o1-mini")
|
||||
self.assertEqual(model.temperature, 0.0) # Should be deterministic
|
||||
|
||||
model = Model("github/o1-preview")
|
||||
self.assertEqual(model.name, "github/o1-preview")
|
||||
self.assertEqual(model.temperature, 0.0) # Should be deterministic
|
||||
|
||||
# Test non-alias passes through unchanged
|
||||
model = Model("gpt-4")
|
||||
self.assertEqual(model.name, "gpt-4")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue