Spaces:
Sleeping
Sleeping
Update services/openai_service.py
Browse files
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=
|
44 |
-
temperature=
|
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
|