mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-11 10:11:27 +00:00

* Ollama client! With function calling. Initial commit, client, no docs or tests yet. * Tidy comments * Cater for missing prompt token count * Removed use of eval, added json parsing support library * Fix to the use of the JSON fix library, handling of Mixtral escape sequence * Fixed 'name' in JSON bug, catered for single function call JSON without [] * removing role='tool' from inner tool result to reduce token usage. * Added Ollama documentation and updated library versions * Added Native Ollama tool calling (v0.3.0 req.) as well as hide/show tools support * Added native tool calling and hide_tools parameter to documentation * Update to Ollama 0.3.1, added tests * Tweak to manual function calling prompt to improve number handling. * Fix formatting Co-authored-by: gagb <gagb@users.noreply.github.com> Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com> * Fix formatting * Better error message --------- Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> Co-authored-by: gagb <gagb@users.noreply.github.com> Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>