langchain/libs
Shorthills AI 4b6fdd7bf0
Update modal.py (#11588)
feat: Raise KeyError when 'prompt' key is missing in JSON response

This commit updates the error handling in the code to raise a KeyError
when the 'prompt' key is not found in the JSON response. This change
makes the code more explicit about the nature of the error, helping to
improve clarity and debugging.

@baskaryan, @eyurtsev.
2023-10-18 23:40:37 -07:00
..
experimental bump 317 (#11986) 2023-10-18 09:25:18 -07:00
langchain Update modal.py (#11588) 2023-10-18 23:40:37 -07:00