Skip to content

LangChain4j LLM Adapter: Support StreamingChatModel #175

Open
@vorburger

Description

@vorburger

I've just tired out the (very awesome!) #102 from @glaforge.

It seems like LangChain4j's StreamingChatModel is not yet supported (with the PR as is today), I've hit:

java.lang.IllegalStateException: ChatModel is not configured
    at com.google.adk.models.langchain4j.LangChain4j.generateContent (LangChain4j.java:159)
    at com.google.adk.flows.llmflows.BaseLlmFlow.lambda$callLlm$1 (BaseLlmFlow.java:189)
    at io.reactivex.rxjava3.internal.operators.flowable.FlowableDefer.subscribeActual (FlowableDefer.java:35)
...

My suggestion would be to to proceed to with getting #102 merged without streaming already, and then use this issue to add that (eventually; no rush / stress). Rome wasn't built in 1 day, so (to me) it's totally fine to build this incrementally, instead of getting #102 to be "perfect".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions