Skip to content

java.lang.ClassNotFoundException: io.ktor.client.plugins.sse.SSEKt #1406

@vincelee87

Description

@vincelee87

Hi,
I am using koog framework 0.6.0. I am facing issues java.lang.ClassNotFoundException: io.ktor.client.plugins.sse.SSEKt when using
following code in my custom object OpenRouterConfig
val openRouterExecutor = simpleOpenRouterExecutor(apiKey) it will call

public fun simpleOpenRouterExecutor(
apiKey: String
): SingleLLMPromptExecutor = SingleLLMPromptExecutor(OpenRouterLLMClient(apiKey))

and OpenRouterLLMClient class will extend AbstractOpenAILLMClient abstract. in this abstract class,
and I notice there is install(SSE) in AbstractOpenAILLMClient.kt file when using httpClient.

Then, I try to include "implementation("io.ktor:ktor-client-sse:2.3.7")" in dependencies in my build.gradle.kts file, during sync gradle project it shows
Could not find io.ktor:ktor-client-sse:2.3.7.
Searched in the following locations:

Is there anyone facing the same problem? and how to solve this issue in koog framework?

Thank you.

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