From 0ddf241d7fc0e60943c3a81b4248b5e9e0a71b61 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 29 Jun 2023 13:36:13 +0530 Subject: [PATCH] feat: update comments --- lib/integrations/openai_processor_service.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/integrations/openai_processor_service.rb b/lib/integrations/openai_processor_service.rb index e169e1b6b..d80f66849 100644 --- a/lib/integrations/openai_processor_service.rb +++ b/lib/integrations/openai_processor_service.rb @@ -1,4 +1,7 @@ class Integrations::OpenaiProcessorService + # 3.5 support 4,096 tokens + # 1 token is approx 4 characters + # 4,096 * 4 = 16,384 characters, sticking to 15,000 to be safe TOKEN_LIMIT = 15_000 API_URL = 'https://api.openai.com/v1/chat/completions'.freeze GPT_MODEL = 'gpt-3.5-turbo'.freeze