chat-ui
c135e939 - Anthropic Tool Support (#1594)

Commit
1 year ago
Anthropic Tool Support (#1594) * support anthropic PDF beta * upstream merge, remove commented out console log line * Fixing type errors. the anthropic API does not yet include a "DocumentBlock" for support PDFs, so an extended type has been added to the endpoint. * changed document processor to async (matching image processor) * use the beta api types rather than custom extension * rudimentary tool testing * interim commit (tool re-passing, file handling) * remove merge error * tidy up, isolate beta classes to utils * anthropic tool calling support. * improve handling of directlyAnswer tool * fix streaming * slight tidy up to tools flow handling * fix: dont pass tools in final generation, instead deduce tools from tool results --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
Author
Parents
Loading