Added code review persona

This commit is contained in:
2024-08-19 16:23:58 -05:00
parent 56db392298
commit c362bd9859
3 changed files with 70 additions and 4 deletions
+3 -3
View File
@@ -9,8 +9,8 @@ class ChatGPTTelegramInferenceBot(BaseTelegramInferenceBot):
def __init__(self):
super().__init__()
self.client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
self.model = "gpt-4o"
self.max_tokens = 4096
self.model = "gpt-4o-mini"
self.max_tokens = 16384
def get_chat_response(self, messages):
response = self.client.chat.completions.create(
@@ -40,7 +40,7 @@ class ChatGPTTelegramInferenceBot(BaseTelegramInferenceBot):
messages.append(response.choices[0].message)
tool_use_count = 0
while len(tool_calls) > 0 and tool_use_count < 50:
while len(tool_calls) > 0 and tool_use_count < 500:
tool_use_results = []
while len(tool_calls) > 0: