Open gordonwoodhull opened 5 days ago
Aha, it also works reliably with claude-3-5-sonnet-20240620
, only failing with latest = claude-3-5-sonnet-20241022
Very nice, thanks for sharing!
I'll eventually have a look into, but in the meantime you can utilize the new .chat(echo="all")
argument to get a better sense of what the conversation looks like before the error occurs, which should help highlight where/why things are going wrong, and thus help to get a more minimal reproducible example
Great! I'll try to use echo="all"
to provide a reproducible example.
In the meantime, I hope the hint to try earlier sonnet is helpful to anyone who hits this error. Older sonnet is good enough for my development purposes, no complaints here.
Thanks so much for chatlas!
Hi Carson!
Thanks to chatlas, I have my quarto chatbot working on both anthropic and openai! ✨
https://github.com/gordonwoodhull/quarto-data-science-chatbot/
It took less than an hour to port from the
openapi
python library, and the output toolshow_answer
is connected much more reliably.Chatlas also multiplexes the streaming chat and sending the documents via the tool very nicely!
I find that with
anthropic claude-3-opus-20240229
my chatbot works reliably but it is very chatty. If I switch toclaude-3-5-sonnet-latest
withIt seems both speedier and more to-the-point, but when I ask it to revise its answer, my second input, it crashes with
Typical conversation:
please draw a heatmap of synthetic randomized hourly temperatures for a place that's in the 70s in the afternoon and gets down to 40 at night, using ggplot2 (or altair, or plotnine, etc.)
yeah that's great but please put the days in x and the hours in y and nights should be colder than days (or whatever silly thing it got wrong)
My chatbot crashes consistently on step 2 with sonnet, but works reliably with opus and with openai gpt-4o. I haven't tested others yet.
Here is the full stack trace: