Repository navigation
Conversation
Allow crush to work when catwalk service is unreachable if custom providers are configured. Falls back gracefully to user-configured providers only, with clear error when neither catwalk nor custom providers are available.
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the Contributor License Agreement (CLA) and hereby sign the CLA. |
|
@andreynering @caarlos0 @kujtimiihoxha could you accept this PR? IMO it is crucial for offline usage and/or potential corporate restrictions |
|
please approve |
|
I encountered the same issue and tried to fix it like you do, but I still saw "failed to load providers" and some other issue in TUI because Providers() function is called directly from some places. So I suggest considering following improvement over your useful solution to be able completely suppress catwalk access via config. |
|
I think what we need to do here is make catwalk optional by exposing the embedded json config from the catwalk package. The idea of catwalk is that users will get the latest updates without having to update crush, but we could fallback to the embedded json if catwalk is not reachable. |
|
@kujtimiihoxha It'd be useful (but not critical) to be able to disable it completely. I only use self-hosted models, and all the other stuff in the list is noise. |
I'll take a closer look at this but in my opinion, users shouldn't have to set some config option to bypass catwalk access. If a working provider config is given, catwalk should be entirely optional by default without additional configuration. |
To add to this, I'm sure many who can't access catwalk (due to corporate firewall restrictions) won't be able to access anything but their self-hosted provider. |
|
I just opened this PR with a mode advanced implementation of this. |
|
Closing in favor of #866 |
|
Alrighty, provider auto-updates can now be disabled in thew new Crush v0.8.0. Details are in the README. Enjoy, and let us know if you have any questions! |
Describe your changes
If the catwalk service is unreachable, even if you provide your own provider(s) config, crush will fail with "failed to load providers".
Allow crush to work when catwalk service is unreachable if custom providers are configured. Falls back gracefully to user-configured providers only, with clear error when neither catwalk nor custom providers are available.
Related issue/discussion: #453
Checklist before requesting a review
CONTRIBUTING.md