fix: improve configure process with error message#919
Conversation
kalvinnchau
left a comment
There was a problem hiding this comment.
can we make this a nicer message when tools aren't supported? not sure if its possible to capture all variations from providers but would be nice for the user if it was:
The selected model: registry.ollama.ai/library/gemma2:2b does not support tool calling, please select a model that has tool support.
Instead of:
RequestFailed("Request failed with status: 400 Bad Request, message: registry.ollama.ai/library/gemma2:2b does not support tools")
we could handle the tool case in one arm, and just print other failures as we normally do
The reason I use the error message directly is: 1. it is kind of hard to capture all variations for tool not support error as like ollama example, they may not have the associated error code; 2. The original error message can help the user to debug more easily, just copy paste the error message to Google and search for it, hope that sounds good to you |
|
nit: we can remove the outer |
Thanks, done |
| Err(e) => { | ||
| println!("{:?}", e); | ||
| spin.stop("We could not connect!"); | ||
| println!("{}", e); |
There was a problem hiding this comment.
nice! good to know such utils! Updated it
* origin/main: fix: clarify linux cli install only (#927) feat: update ui for ollama host (#912) feat: add CONFIGURE=false option in install script (#920) fix: truncation agent token calculations (#915) fix: request payload for o1 models (#921) Update SupportedEnvironments.js so others don't get confused on why they can not open the macos app on x86 (#888) fix: improve configure process with error message (#919) docs: Goose on Windows via WSL (#901) fix: more graceful handling of missing usage in provider response (#907) feat: rm uv.lock cause it points to square artifactory (#917) feat: Update issue templates for bug report for goose (#913) fix: post endpoint url on sse endpoint event (#900)
* main: (28 commits) ci: per semver build metadata should be after + (#971) fix: temp fix to make CI workflow pass (#970) chore: bump patch version to 1.0.3 (#967) fix: load shell automatically from env for GUI (#948) fix: update versions in release and canary workflows (#911) docs: fix typo, name (#963) docs: typo fix (#961) chore: remove gpt-3.5-turbo UI suggestion, as it is deprecated (#959) chore: remove o1-mini suggestion from UI add model view (#957) fix: missing field in request (#956) docs: update provider docs, fix rate limit link (#943) fix: clarify linux cli install only (#927) feat: update ui for ollama host (#912) feat: add CONFIGURE=false option in install script (#920) fix: truncation agent token calculations (#915) fix: request payload for o1 models (#921) Update SupportedEnvironments.js so others don't get confused on why they can not open the macos app on x86 (#888) fix: improve configure process with error message (#919) docs: Goose on Windows via WSL (#901) fix: more graceful handling of missing usage in provider response (#907) ...


Show error message during configuration.
Test: