vhr1007 commited on
Commit
c6afeca
1 Parent(s): b9ffe6a

Update services/openai_service.py

Browse files
Files changed (1) hide show
  1. services/openai_service.py +2 -2
services/openai_service.py CHANGED
@@ -40,8 +40,8 @@ def generate_rag_response(json_output, user_query):
40
  chat_completion = client.chat.completions.create(
41
  messages=main_prompt,
42
  model="gpt-35-turbo", # Use the gpt-4o-mini model
43
- max_tokens=486, # Limit the maximum number of tokens in the response
44
- temperature=1
45
  )
46
 
47
  # Log the response from the model
 
40
  chat_completion = client.chat.completions.create(
41
  messages=main_prompt,
42
  model="gpt-35-turbo", # Use the gpt-4o-mini model
43
+ max_tokens=2000, # Limit the maximum number of tokens in the response
44
+ temperature=0.5
45
  )
46
 
47
  # Log the response from the model