bug for agent streaming response

Aperta
#1,192 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
json, kotlin

Direzione di ricerca

Start with SingleRunStrategyProvider.kt, especially requestResponses around line 197, where the stack trace shows getJsonObject receiving a JsonLiteral. Reproduce the failing non-ProxyAI provider request and inspect the streamed response shape before JSON parsing. Done means the response is handled without the IllegalArgumentException and the agent can return the streamed result.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
What happened?

I found use proxyai's model success,but other is failed . likes "gpt-5",
I ask question " 用java生成快速排序算法的文件类 "。

cash log>
nodeCallLLM): Element class kotlinx.serialization.json.JsonLiteral is not a JsonObject
java.lang.IllegalArgumentException: Element class kotlinx.serialization.json.JsonLiteral is not a JsonObject
at kotlinx.serialization.json.JsonElementKt.error(JsonElement.kt:326)
at kotlinx.serialization.json.JsonElementKt.getJsonObject(JsonElement.kt:237)
at com.lyentech.baitong.agent.strategy.SingleRunStrategyProviderKt.requestResponses(SingleRunStrategyProvider.kt:197)
at com.lyentech.baitong.agent.strategy.SingleRunStrategyProviderKt.access$requestResponses(SingleRunStrategyProvider.kt:1)
at com.lyentech.baitong.agent.strategy.SingleRunStrategyProviderKt$requestResponses$1.invokeSuspend(SingleRunStrategyProvider.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:29)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

Relevant log output or stack trace

Steps to reproduce

No response

CodeGPT version

3.7.3

Operating System

None

Lingua principale
Kotlin
Stelle
1.9k
Fork
401
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di carlrobertoh/ProxyAI

Tutte le issue di carlrobertoh/ProxyAI

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.