#getting a surprising result from

1 messages · Page 1 of 1 (latest)

arctic lance
#

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

arctic lance
#

@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?

arctic lance
#

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 😅

arctic lance
sonic spoke
#

facepalm thanks!