8 Commits

Author SHA1 Message Date
Travis Cline c3c94c54f8 Improve tool choice population and parsing (#883)
* openai: clean up tool call handling

* examples: clean up output in completion example

---------

Co-authored-by: Konstantin Trunin <konstantin@trunin.com>
2024-06-14 22:16:18 +00:00
Eli Bendersky c59cceb0a7 examples: fix openai toolcall example after refactor (#783)
After #757 we can remove a bunch of boilerplate conversion code from the example

Updates #753
2024-04-19 13:23:02 +00:00
Eli Bendersky 8b67ef320c examples: clarify openai-function-call-example (#751)
examples: clearify openai-function-call-example

clean up the flow and don't use globals
2024-04-07 12:17:58 -07:00
Travis Cline 41746928f0 llms: Implement tool calling, including parallel tool call request support (#709)
* openai: Take steps to make tool calls over the older function calling API

* openai: Additional steps to evolve towards newer tool calling interface

* openai: Connect tool calling for openai backend

* openai: Fix up lint issue

* examples: pull httputil use

* tools: iterate on tools support

* openai: Fix up tool call response mapping

* llms: Cover additional message type in additional backends

* examples: temporarily point to branch

* openai: change type switch for ToolCallResponse

* examples: Clean up and refactor openai function calling example

* mistral: respect ChatMessageTypeTool
2024-03-31 16:34:56 -07:00
Raj Jaiswal 7fb9a139e3 llms/cloudflare: Implement Cloudflare Workers AI LLM (#679)
* Add Cloudflare Workers AI LLM

* lint fixes

* text generation: support streaming response

* add tests

* review fixes

* minor http client fix
2024-03-24 13:40:11 -07:00
Eli Bendersky 8b47e2122c examples: use llms.TextPart helper when it's useful (#574) 2024-01-27 18:47:27 +00:00
Eli Bendersky 062a21f63a Update openai examples to new APIs 2024-01-27 08:03:52 -08:00
Travis Cline d5b1c0abd7 examples: Add function calling example 2023-07-23 14:16:55 -07:00