#getting a surprising result from
1 messages · Page 1 of 1 (latest)
Here's the code:
title, err := dag.Llm(dagger.LlmOpts{Model: model}).
WithPrompt("Write an appropriate pull request title for the following assignment. It should be under 150 characters. Just tell me the title and nothing else.\nAssignment:\n" + assignment).
LastReply(ctx)
value of title is "(no reply)"
Same prompt in a shell returns the expected value. But I've hit this consistently with that code
ok not every time apparently 🤔 super weird
@main pendant @sonic spoke any guesses on this one? It looks like (no reply) is returned by LastReply if no non-zero assistant response is in history, but it sometimes returns the correct value and in the above trace we can see there was a reply. Race condition?
oh I just realized locally where it was working as expected I'm on llm.6 and it's not working in llm.8. I think I see the bug in the gemini client
one of these days we'll add tests for SendQuery 😅
confirmed the fix @sonic spoke https://github.com/dagger/dagger/pull/9862
looks like with the streaming change the text content got dropped from being appended to the content string
thanks!