News for hackers. Stuff that matters.
Re:Anthropic launches Tool Use (function calling) by rcarmo on Friday April 05, 2024 @04:12AM (#39939888)
I do hope we converge on a standardized API and schema for this. Testing and integrating multiple LLMs is tiresome with all the silly little variations in API and prompt formatting.
Re:Anthropic launches Tool Use (function calling) by _hfqa on Friday April 05, 2024 @04:16AM (#39939911)
There are a few libs that already abstract this away, for example:

- https://github.com/BerriAI/litellm

- https://jxnl.github.io/instructor/

- langchain

It's not hard for me to imagine a future where there is something like the CNCF for AI models, tools, and infra.

Re:Anthropic launches Tool Use (function calling) by TZubiri on Friday April 05, 2024 @06:26AM (#39940750)
Langchain.

But it's too bleeding edge, you are asking a lot.

Just do the work and don't be spoiled senseless

Re:Anthropic launches Tool Use (function calling) by rcarmo on Friday April 05, 2024 @07:57AM (#39941285)
Langchain, for all its popularity, is some of the worst, most brittle Python code I’ve ever seen or tried to use, so I’d prefer to have things sorted out for me at the API level.
Re:Anthropic launches Tool Use (function calling) by supafastcoder on Friday April 05, 2024 @08:44AM (#39941707)
I switched to using Instructor/Marvin which works really nicely with native pydantic models and gets out the way for everything else.
Re:Anthropic launches Tool Use (function calling) by cjonas on Friday April 05, 2024 @09:15AM (#39941971)
Imo it's unfortunate that python is the dominant tech of this domain. Typescript is better suited for the inference side of things (I know there a ts version of most things, most most companies are looking for python dev)
Re:Anthropic launches Tool Use (function calling) by rcarmo on Friday April 05, 2024 @04:59PM (#39947146)
Python is fine. The problem is all the folk writing Python as if they were doing Java cosplay and without any tests or type annotations.
Re:Anthropic launches Tool Use (function calling) by ilaksh on Friday April 05, 2024 @07:40AM (#39941161)
It looks very similar if not identical to OpenAI?
Re:Anthropic launches Tool Use (function calling) by habosa on Friday April 05, 2024 @10:10AM (#39942580)
OpenRouter is a great step in that direction: https://openrouter.ai/
Re:Anthropic launches Tool Use (function calling) by sdeep27 on Friday April 05, 2024 @08:37PM (#39948940)
check out LiteLLM... been using in (lite) production and they make it easy to switch between models with a standardized API.