Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.55k stars 226 forks source link

[Bug]: Anthropic Plugin not working ("undefined" error on Chat node) #332

Closed wayne-chang closed 5 months ago

wayne-chang commented 5 months ago

What happened?

image

What was the expected functionality?

Expected Claude 2.1 to execute but getting "undefined" error on the Max Tokens.

Describe your environment

Mac OS, Node v21.5.0, Anthropic Plugin

Relevant log output

No response

Relevant screenshots

No response

Code of Conduct

wayne-chang commented 5 months ago

okay, update.

gogwilt commented 5 months ago

I think the Claude chat node tries to enforce token limits, and does this with a dictionary mapping model names to token limits. We need to cover the case where the model is unknown, in which case we cannot enforce token limits that are unknown.

Should be a simple fix.

abrenneke commented 5 months ago

Fixed in 4055482bf1f4ad2a598df909ff14d95c39bce5dc