Try to identify condition in which users seemingly in error get the "Please paste API key message"
Browse files
app.py
CHANGED
|
@@ -283,7 +283,8 @@ def run_chain(chain, inp, capture_hidden_text):
|
|
| 283 |
try:
|
| 284 |
output = chain.run(input=inp)
|
| 285 |
except AuthenticationError as ae:
|
| 286 |
-
output = AUTH_ERR_MSG
|
|
|
|
| 287 |
except RateLimitError as rle:
|
| 288 |
output = "\n\nRateLimitError: " + str(rle)
|
| 289 |
except ValueError as ve:
|
|
|
|
| 283 |
try:
|
| 284 |
output = chain.run(input=inp)
|
| 285 |
except AuthenticationError as ae:
|
| 286 |
+
output = AUTH_ERR_MSG + str(datetime.datetime.now()) + ". " + str(ae)
|
| 287 |
+
print("output", output)
|
| 288 |
except RateLimitError as rle:
|
| 289 |
output = "\n\nRateLimitError: " + str(rle)
|
| 290 |
except ValueError as ve:
|