From 92f4100c92a3e7d95e9f7ecb68cd6747bfb91771 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 8 Dec 2023 12:11:57 -0800 Subject: [PATCH] be careful about too much convo history, avoid swamping the model with too much context --- aider/models/openai.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/models/openai.py b/aider/models/openai.py index 1c6286d63..cb396fabf 100644 --- a/aider/models/openai.py +++ b/aider/models/openai.py @@ -44,11 +44,11 @@ class OpenAIModel(Model): elif tokens == 32: self.prompt_price = 0.06 self.completion_price = 0.12 - self.max_chat_history_tokens = 3 * 1024 + self.max_chat_history_tokens = 2 * 1024 elif tokens == 128: self.prompt_price = 0.01 self.completion_price = 0.03 - self.max_chat_history_tokens = 4 * 1024 + self.max_chat_history_tokens = 2 * 1024 return @@ -60,7 +60,7 @@ class OpenAIModel(Model): if self.name == "gpt-3.5-turbo-1106": self.prompt_price = 0.001 self.completion_price = 0.002 - self.max_chat_history_tokens = 3 * 1024 + self.max_chat_history_tokens = 2 * 1024 elif tokens == 4: self.prompt_price = 0.0015 self.completion_price = 0.002