Ironclad / rivet

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

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

Closed wayne-chang closed 10 months ago

wayne-chang commented 10 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 10 months ago

okay, update.

gogwilt commented 10 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 10 months ago

Fixed in 4055482bf1f4ad2a598df909ff14d95c39bce5dc