Update openai-functions.md

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
Ettore Di Giacinto 2024-02-27 23:24:46 +01:00 committed by GitHub
parent c7e08813a5
commit c8be839481
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,16 +1,18 @@
+++ +++
disableToc = false disableToc = false
title = "🔥 OpenAI functions" title = "🔥 OpenAI functions and tools"
weight = 17 weight = 17
url = "/features/openai-functions/" url = "/features/openai-functions/"
+++ +++
LocalAI supports running OpenAI functions with `llama.cpp` compatible models. LocalAI supports running OpenAI [functions and tools API](https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools) with `llama.cpp` compatible models.
![localai-functions-1](https://github.com/ggerganov/llama.cpp/assets/2420543/5bd15da2-78c1-4625-be90-1e938e6823f1) ![localai-functions-1](https://github.com/ggerganov/llama.cpp/assets/2420543/5bd15da2-78c1-4625-be90-1e938e6823f1)
To learn more about OpenAI functions, see the [OpenAI API blog post](https://openai.com/blog/function-calling-and-other-api-updates). To learn more about OpenAI functions, see also the [OpenAI API blog post](https://openai.com/blog/function-calling-and-other-api-updates).
LocalAI is also supporting [JSON mode](https://platform.openai.com/docs/guides/text-generation/json-mode) out of the box with llama.cpp-compatible models.
💡 Check out also [LocalAGI](https://github.com/mudler/LocalAGI) for an example on how to use LocalAI functions. 💡 Check out also [LocalAGI](https://github.com/mudler/LocalAGI) for an example on how to use LocalAI functions.