- Issue created by @merilainen
- 🇩🇪Germany marcus_johansson
The actual handling of the exception is up to the different applications to handle gracefully - we should look into this more for the modules that comes with the AI module. The only one that is known to be graceful, is the API Explorer because we have put effort into showcasing errors correctly there on the actual chat message.
With that being said, there are two obvious things we can do to make this process easier globally:
* The list model command could come with a command to gracefully fallback if the api can't be reached and answer empty.
* A better exception in this case that actually tells you what is wrong. -
marcus_johansson →
committed 4f5d7b04 on 1.0.x
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed 4f5d7b04 on 1.0.x
- 🇩🇪Germany marcus_johansson
This part can now be tested in the 1.0.x-dev:
* The list model command could come with a command to gracefully fallback if the api can't be reached and answer empty.It shouldn't create wsod when the model response doesn't work, instead it will just give back an empy models selection.
-
marcus_johansson →
committed 4f5d7b04 on kernel-testing
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed 4f5d7b04 on kernel-testing
-
marcus_johansson →
committed 4f5d7b04 on mock-stream-response
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed 4f5d7b04 on mock-stream-response
-
marcus_johansson →
committed b044e4bb on 1.0.x
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed b044e4bb on 1.0.x
-
marcus_johansson →
committed caee0d01 on 1.0.x
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed caee0d01 on 1.0.x
- Status changed to Fixed
3 months ago 7:23am 26 August 2024 - 🇩🇪Germany marcus_johansson
@mErilainen - now both the things should have been added to 1.0.x. It fails gracefully when its loading the models, and the API is not responding or the key is set wrong on the AI API Explorer, with a log message.
And if the key is missing, similar to your case it now throws an AiSetupFailureException with the message "We could not load your OpenAI Key at all, please check your environment settings or your setup key.".
-
marcus_johansson →
committed caee0d01 on 3456770-discuss-interface-suggestion
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed caee0d01 on 3456770-discuss-interface-suggestion
-
marcus_johansson →
committed b044e4bb on 3456770-discuss-interface-suggestion
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed b044e4bb on 3456770-discuss-interface-suggestion
-
marcus_johansson →
committed caee0d01 on aws-bedrock
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed caee0d01 on aws-bedrock
-
marcus_johansson →
committed b044e4bb on aws-bedrock
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed b044e4bb on aws-bedrock
-
marcus_johansson →
committed 4f5d7b04 on aws-bedrock
Issue #3467572 by marcus_johansson: Error handling of missing...
-
marcus_johansson →
committed 4f5d7b04 on aws-bedrock
Automatically closed - issue fixed for 2 weeks with no activity.