Streamed api break with 0.74.0
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Describe the bug LLM reports
LLM response status: 500 body: {"error":{"message":"Internal server error: Can only get item pairs from a mapping.","type":"InternalServerError"},"request_id":"req-b499tr-1761722328817040595"}
Screenshots
Additional context 0.73.x works fine.
Can you please provide more details of the provider and model used?
I'm using streamlake kat-coder-pro-v1 https://www.streamlake.ai/
When I enable --verbose, there's NPE
[TOOLS] Calling tool 'eca_grep' with args 'null'
java.lang.NullPointerException
at babashka.fs$as_path.invokeStatic(fs.cljc:41)
at babashka.fs$as_path.invoke(fs.cljc:36)
at babashka.fs$starts_with_QMARK_.invokeStatic(fs.cljc:946)
at babashka.fs$starts_with_QMARK_.invoke(fs.cljc:943)
at eca.features.tools.filesystem$allowed_path_QMARK_$fn__5812.invoke(filesystem.clj:18)
at clojure.core$some.invokeStatic(core.clj:2718)
at clojure.core$some.invoke(core.clj:2709)
at eca.features.tools.filesystem$allowed_path_QMARK_.invokeStatic(filesystem.clj:18)
at eca.features.tools.filesystem$allowed_path_QMARK_.invoke(filesystem.clj:17)
at clojure.core$partial$fn__5929.invoke(core.clj:2641)
at eca.features.tools.util$invalid_arguments$fn__4773.invoke(util.clj:48)
at clojure.core$keep$fn__8695.invoke(core.clj:7529)
at clojure.lang.LazySeq.force(LazySeq.java:50)
at clojure.lang.LazySeq.realize(LazySeq.java:89)
at clojure.lang.LazySeq.seq(LazySeq.java:106)
at clojure.lang.LazySeq.first(LazySeq.java:118)
at clojure.lang.RT.first(RT.java:712)
at clojure.core$first__5470.invokeStatic(core.clj:55)
at clojure.core$first__5470.invoke(core.clj:55)
at eca.features.tools.util$invalid_arguments.invokeStatic(util.clj:46)
at eca.features.tools.util$invalid_arguments.invoke(util.clj:45)
at eca.features.tools.filesystem$grep.invokeStatic(filesystem.clj:182)
at eca.features.tools.filesystem$grep.invoke(filesystem.clj:170)
at clojure.lang.Var.invoke(Var.java:390)
at eca.features.tools$call_tool_BANG_.invokeStatic(tools.clj:108)
at eca.features.tools$call_tool_BANG_.invoke(tools.clj:99)
at eca.features.chat$prompt_messages_BANG_$fn__6502$fn__6503$do_tool_call__6505$fn__6510$fn__6511.invoke(chat.clj:707)
at clojure.core$binding_conveyor_fn$fn__5844.invoke(core.clj:2047)
at clojure.lang.AFn.call(AFn.java:18)
at [email protected]/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095)
at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619)
at [email protected]/java.lang.Thread.runWith(Thread.java:1460)
at [email protected]/java.lang.Thread.run(Thread.java:1447)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:832)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:808)
[TOOLS] Error calling tool eca_grep: null
@jilen that looks like the same issue we saw yesterday on Azure, affecting multiple models like Github ones where LLM were just not passing the required tool arguments which is a model fault.
Me and @zikajk are improving ECA to fail gracefully when that happens to me more clear, but it's completly a model's issue.
I'm wondered why the 0.73.x version don't have this issue.
@jilen I don't have acces to that model to test myself, but maybe if you can try different eca versions you can find which version stopped working and I can help understand why
@jilen also, can you share your provider configuration in json?
@jilen I found the issue, it was a regression specific for few models, just fixed on 0.75.2, thanks for the report!