Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def chat(
|
|
107 |
]
|
108 |
)
|
109 |
|
110 |
-
if
|
111 |
messages.append({"role": "system", "content": f"{os.environ['sources']}\n\n{sources}"})
|
112 |
|
113 |
response = openai.Completion.create(
|
|
|
107 |
]
|
108 |
)
|
109 |
|
110 |
+
if docs:
|
111 |
messages.append({"role": "system", "content": f"{os.environ['sources']}\n\n{sources}"})
|
112 |
|
113 |
response = openai.Completion.create(
|