block-open-source / goose

Goose is a developer agent that operates from your command line to help you do the boring stuff.
https://block-open-source.github.io/goose/
Apache License 2.0
73 stars 12 forks source link

fix: exit the goose and show the error message when provider environment variable is not set #103

Open lifeizhou-ap opened 1 day ago

lifeizhou-ap commented 1 day ago

Why Currently it throws a runtime error and print the stack trace when

when the environment variable is not set for LLM apis, when unknown provider or moderator is trying to be loaded This make it hard for users to understand what is going.

What

Screenshot 2024-10-01 at 1 43 31 PM Screenshot 2024-10-02 at 11 49 46 AM

Please give feedback including the content and presentation of these error message. Thank you!