[AGE-348] [bug] Errors are not correctly handled in the LLM applications #1805
Labels
bug
Something isn't working
Medium priority
Created by Linear-GitHub Sync
qa
Created by Linear-GitHub Sync
SDK
Often, exceptions occurring within the application code are not appropriately handled and are displayed as responses instead of exceptions in the playground.
For example, if you create an application in OSS without setting the Mistral API key and then attempt to call it from the playground, you will receive a generic response 'string indices must be integers' rather than a clear exception.
The aim of this issue is to examine how we handle exceptions in the SDK, address the problem, and incorporate tests into the QA process to ensure ongoing proper handling of exceptions.
Example:
Here is the container's log yet the error in the UI shows
string indices must be integers
Another instance now, is not providing the openai API key and then when completion fails we get the following
From SyncLinear.com | AGE-348
The text was updated successfully, but these errors were encountered: