Spaces:
Sleeping
Sleeping
Update actions/actions.py
Browse files- actions/actions.py +1 -1
actions/actions.py
CHANGED
@@ -50,7 +50,7 @@ def generate_openai_response(query, model_engine="gpt-3.5-turbo", max_tokens=256
|
|
50 |
current_user_query = conversation_data["current_user_query"]
|
51 |
|
52 |
# Create the prompt template
|
53 |
-
context = f"Relevant context:{context}\n\
|
54 |
|
55 |
# Generate a response using the OpenAI API
|
56 |
response = openai.Completion.create(
|
|
|
50 |
current_user_query = conversation_data["current_user_query"]
|
51 |
|
52 |
# Create the prompt template
|
53 |
+
context = f"Using Relevant context:{context}\n\n and Previous User Query: {previous_user_query}\n\n Answer the next question in detail:{current_user_query}"
|
54 |
|
55 |
# Generate a response using the OpenAI API
|
56 |
response = openai.Completion.create(
|