I noted that Anthropic’s tools variant requires me to implement and execute str_replace_based_edit_tool myself, even though its function parameters are pre-baked into the model.
I excluded OpenAI’s code_interpreter from the kind of pre-baked, user-executed tool design I was looking for, because with the OpenAI one they run the tool for you on their server as part of executing the prompt.
I was looking for other examples of pre-baked tool designs that I still execute myself because I'm trying to design an abstraction for LLM that might need to cover multiple different underlying model vendors.
When discussing custom system prompts for local-model tool use on Ollama, I said, “Interesting, sounds like this might be an Ollama thing.”
In the same thread, @niccholaspage reported that tool calls were being printed rather than executed on Ollama despite system-prompt tuning, and said they had some luck with llama.cpp and llama-server instead. That was their reported experience, not a result I claimed to have tested.
I asked, “Anyone managed to run a model through @lmstudio that supports tool calling via their OpenAI compatible API and seen it handle a conversation with several tool calls in a row?”
I followed up by asking, “If so, which model did you use?”
I have compared provider support for tool and function calling as part of thinking about abstractions across LLM APIs. These notes connect to my later work on llm tool calling and to multimodal api inputs when tools are used with vision models.
I asked for recommendations of alternative web API LLM providers to OpenAI that offered an equivalent to OpenAI functions.
I wanted to collect different implementations, compare them, and use those differences to inform an abstraction over multiple implementations.
I noted that the llama.cpp Python OpenAI imitation API server can handle function calls under some configurations.
I described a new Mistral API feature as matching the OpenAI JSON mode.
I said Mistral APIs already had function calling and asked whether anyone had tried it; this was a request for others’ experience, not a report of my own use.
I said the structured data extraction trick I had written about now worked with Claude 3 models.
I noted that the Claude 3 function-calling approach also worked with Claude’s vision models.
I highlighted that GPT-4 Vision did not support functions yet, in contrast to Claude’s support for the extraction technique.
I had been looking forward to function calling for vision models and said its arrival meant I could ditch a workaround I was running.
My workaround piped input through Vision with instructions to run OCR, then piped the result through Turbo to get structured data.
I had been looking forward to function calling for vision models, and said it meant I could ditch a nasty little hack I was running.
My workaround piped input through Vision and told it to run OCR, then piped the result through Turbo to get structured data out of it.
I shared what I built with function calling for vision models: https://t.co/pS6GLV9JtL.
I interpreted the XML from Reddit as the specification of the tool.
I said actual tool usage is triggered using JSON, not XML.
I wryly remarked that Anthropic really do love their not-quite-valid XML.
I noted that with Anthropic’s tools variant, developers still have to implement and execute "str_replace_based_edit_tool" themselves.
I said the function's parameters are pre-baked into the model.
I asked whether any other vendors have something similar.
Related: llm apis and tool calling, api tooling patterns, mcp adoption and design