Error: No available model found. Configure at least one provider model.
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Describe the bug
After M-x package-install eca in emacs I called M-x eca and I can't use any command.
It worked for me yesterday on different computer.
The error I see says Error: No available model found. Configure at least one provider model.
Here is stderr
[server] Starting server...
[DB] No existing DB cache found for /Users/rbekenev/.cache/eca/db.transit.json
:db/read-cache 0ms
:db/read-cache 0ms
[DB] Loading from workspace-cache caches...
:eca/initialize 42ms
[MODELS] Provider 'openai': Using models.dev provider-id fallback (url 'https://api.openai.com' not matched)
[MODELS] Provider 'openai': Loaded 41 models from models.dev
[MODELS] Provider 'anthropic': Using models.dev provider-id fallback (url 'https://api.anthropic.com' not matched)
[MODELS] Provider 'anthropic': Loaded 22 models from models.dev
[MODELS] Provider 'github-copilot': Loaded 20 models from models.dev
[MODELS] Provider 'google': Using models.dev provider-id fallback (url 'https://generativelanguage.googleapis.com/v1beta/openai' not matched)
[MODELS] Provider 'google': Loaded 26 models from models.dev
[LLM-API] Default LLM model 'null' decision ':no-available-model'
[LLM-API] Default LLM model 'null' decision ':no-available-model'
:eca/initialized 156ms
:eca/chat-query-commands 0ms
[LLM-API] Default LLM model 'null' decision ':no-available-model'
#error {
:cause No available model found. Configure at least one provider model.
:data {}
:via
[{:type clojure.lang.ExceptionInfo
:message No available model found. Configure at least one provider model.
:data {}
:at [eca.features.chat$prompt_STAR_ invokeStatic chat.clj 1383]}]
:trace
[[eca.features.chat$prompt_STAR_ invokeStatic chat.clj 1383]
[eca.features.chat$prompt_STAR_ invoke chat.clj 1338]
[eca.features.chat$prompt invokeStatic chat.clj 1468]
[eca.features.chat$prompt invoke chat.clj 1446]
[eca.handlers$chat_prompt invokeStatic handlers.clj 117]
[eca.handlers$chat_prompt invoke handlers.clj 113]
[eca.server$fn__18308 invokeStatic server.clj 48]
[eca.server$fn__18308 invoke server.clj 47]
[clojure.lang.MultiFn invoke MultiFn.java 239]
[jsonrpc4clj.server$pending_received_request invokeStatic server.clj 182]
[jsonrpc4clj.server$pending_received_request invoke server.clj 178]
[jsonrpc4clj.server.ChanServer receive_request server.clj 377]
[jsonrpc4clj.server.ChanServer$fn__17793 invoke server.clj 262]
[jsonrpc4clj.server$thread_loop$fn__17708 invoke server.clj 123]
[clojure.lang.AFn applyToHelper AFn.java 152]
[clojure.lang.AFn applyTo AFn.java 144]
[clojure.core$apply invokeStatic core.clj 667]
[clojure.core$with_bindings_STAR_ invokeStatic core.clj 1990]
[clojure.core$with_bindings_STAR_ doInvoke core.clj 1990]
[clojure.lang.RestFn invoke RestFn.java 428]
[clojure.lang.AFn applyToHelper AFn.java 156]
[clojure.lang.RestFn applyTo RestFn.java 135]
[clojure.core$apply invokeStatic core.clj 671]
[clojure.core$bound_fn_STAR_$fn__5839 doInvoke core.clj 2020]
[clojure.lang.RestFn invoke RestFn.java 400]
[clojure.core.async$thread_call$returning_to_chan__13625$fn__13626 invoke async.clj 509]
[clojure.lang.AFn run AFn.java 22]
[java.util.concurrent.ThreadPoolExecutor runWorker ThreadPoolExecutor.java 1095]
[java.util.concurrent.ThreadPoolExecutor$Worker run ThreadPoolExecutor.java 619]
[java.lang.Thread runWith Thread.java 1460]
[java.lang.Thread run Thread.java 1447]
[com.oracle.svm.core.thread.PlatformThreads threadStartRoutine PlatformThreads.java 832]
[com.oracle.svm.core.thread.PlatformThreads threadStartRoutine PlatformThreads.java 808]]}
:db/upsert-cache 1ms
:eca/chat-prompt 6ms
:eca/chat-query-commands 1ms
[LLM-API] Default LLM model 'null' decision ':no-available-model'
#error {
:cause No available model found. Configure at least one provider model.
:data {}
:via
[{:type clojure.lang.ExceptionInfo
:message No available model found. Configure at least one provider model.
:data {}
:at [eca.features.chat$prompt_STAR_ invokeStatic chat.clj 1383]}]
:trace
[[eca.features.chat$prompt_STAR_ invokeStatic chat.clj 1383]
[eca.features.chat$prompt_STAR_ invoke chat.clj 1338]
[eca.features.chat$prompt invokeStatic chat.clj 1468]
[eca.features.chat$prompt invoke chat.clj 1446]
[eca.handlers$chat_prompt invokeStatic handlers.clj 117]
[eca.handlers$chat_prompt invoke handlers.clj 113]
[eca.server$fn__18308 invokeStatic server.clj 48]
[eca.server$fn__18308 invoke server.clj 47]
[clojure.lang.MultiFn invoke MultiFn.java 239]
[jsonrpc4clj.server$pending_received_request invokeStatic server.clj 182]
[jsonrpc4clj.server$pending_received_request invoke server.clj 178]
[jsonrpc4clj.server.ChanServer receive_request server.clj 377]
[jsonrpc4clj.server.ChanServer$fn__17793 invoke server.clj 262]
[jsonrpc4clj.server$thread_loop$fn__17708 invoke server.clj 123]
[clojure.lang.AFn applyToHelper AFn.java 152]
[clojure.lang.AFn applyTo AFn.java 144]
[clojure.core$apply invokeStatic core.clj 667]
[clojure.core$with_bindings_STAR_ invokeStatic core.clj 1990]
[clojure.core$with_bindings_STAR_ doInvoke core.clj 1990]
[clojure.lang.RestFn invoke RestFn.java 428]
[clojure.lang.AFn applyToHelper AFn.java 156]
[clojure.lang.RestFn applyTo RestFn.java 135]
[clojure.core$apply invokeStatic core.clj 671]
[clojure.core$bound_fn_STAR_$fn__5839 doInvoke core.clj 2020]
[clojure.lang.RestFn invoke RestFn.java 400]
[clojure.core.async$thread_call$returning_to_chan__13625$fn__13626 invoke async.clj 509]
[clojure.lang.AFn run AFn.java 22]
[java.util.concurrent.ThreadPoolExecutor runWorker ThreadPoolExecutor.java 1095]
[java.util.concurrent.ThreadPoolExecutor$Worker run ThreadPoolExecutor.java 619]
[java.lang.Thread runWith Thread.java 1460]
[java.lang.Thread run Thread.java 1447]
[com.oracle.svm.core.thread.PlatformThreads threadStartRoutine PlatformThreads.java 832]
[com.oracle.svm.core.thread.PlatformThreads threadStartRoutine PlatformThreads.java 808]]}
:db/upsert-cache 2ms
:eca/chat-prompt 4ms
I was trying to run /login and /doctor commands but I see the error mentioned above.
My best guess is it probably was introduced in https://github.com/editor-code-assistant/eca/issues/292 because it's recent and contains the error message I see.
To Reproduce
Steps to reproduce the behavior:
- open emacs
- M-x package-install eca
- call M-x eca
- wait until eca server is downloaded
- try to execute any commands
Expected behavior
/login command should work.
As far as I understand models should also be discovered automatically.
Doctor
I can't even run /doctor unfortunately.
Screenshots
Additional context Add any other context about the problem here.
I meant this PR - https://github.com/editor-code-assistant/eca/pull/295
I was able resolve this by downloading previous release's zip file. Unpack it to ~/.emacs.d/eca but making sure that eca-version file contains 0.100.0 (otherwise it seems like eca updates the server automatically)
I will take a look, probably a dumb mistake
Fixed in 0.100.1, thanks for the report, LMK if any issues
It works perfectly now. Thank you for super quick fix!