mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
finishing openrouter integration
This commit is contained in:
parent
1fc2abe3d0
commit
abbc93678b
9 changed files with 32 additions and 46 deletions
|
@ -5,22 +5,22 @@ from aider.models import Model
|
|||
|
||||
class TestModels(unittest.TestCase):
|
||||
def test_max_context_tokens(self):
|
||||
model = Model("gpt-3.5-turbo")
|
||||
model = Model.create("gpt-3.5-turbo")
|
||||
self.assertEqual(model.max_context_tokens, 4 * 1024)
|
||||
|
||||
model = Model("gpt-3.5-turbo-16k")
|
||||
model = Model.create("gpt-3.5-turbo-16k")
|
||||
self.assertEqual(model.max_context_tokens, 16 * 1024)
|
||||
|
||||
model = Model("gpt-4")
|
||||
model = Model.create("gpt-4")
|
||||
self.assertEqual(model.max_context_tokens, 8 * 1024)
|
||||
|
||||
model = Model("gpt-4-32k")
|
||||
model = Model.create("gpt-4-32k")
|
||||
self.assertEqual(model.max_context_tokens, 32 * 1024)
|
||||
|
||||
model = Model("gpt-4-0101")
|
||||
model = Model.create("gpt-4-0101")
|
||||
self.assertEqual(model.max_context_tokens, 8 * 1024)
|
||||
|
||||
model = Model("gpt-4-32k-2123")
|
||||
model = Model.create("gpt-4-32k-2123")
|
||||
self.assertEqual(model.max_context_tokens, 32 * 1024)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue