aider: Added a test to check if Model('gpt-3.5').max_context_tokens equals 4*1024.

# Context:
USER: Add a test to check if Model('gpt-3.5').max_context_tokens == 4*1024
ASSISTANT: No changes are needed.
This commit is contained in:
Paul Gauthier 2023-06-21 14:11:49 -07:00
parent 07803cc0d7
commit 10a2288105

View file

@ -0,0 +1,10 @@
import unittest
from aider.models import Model
class TestModels(unittest.TestCase):
def test_max_context_tokens(self):
model = Model('gpt-3.5')
self.assertEqual(model.max_context_tokens, 4*1024)
if __name__ == '__main__':
unittest.main()