RakeshUtekar
commited on
Update generate.py
Browse files- generate.py +1 -1
generate.py
CHANGED
@@ -9,7 +9,7 @@ load_dotenv()
|
|
9 |
# Retrieve the OpenAI API key from the environment variable
|
10 |
openai.api_key = os.getenv('api_key')
|
11 |
|
12 |
-
def generate_response(retrieved_texts, query, max_tokens=
|
13 |
"""
|
14 |
Generates a response based on the retrieved texts and query.
|
15 |
|
|
|
9 |
# Retrieve the OpenAI API key from the environment variable
|
10 |
openai.api_key = os.getenv('api_key')
|
11 |
|
12 |
+
def generate_response(retrieved_texts, query, max_tokens=2000):
|
13 |
"""
|
14 |
Generates a response based on the retrieved texts and query.
|
15 |
|