Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 164a3b3

Browse filesBrowse files
committed
Added functionary v2.2 chat handler + updated readme
1 parent f5cc6b3 commit 164a3b3
Copy full SHA for 164a3b3

File tree

Expand file treeCollapse file tree

2 files changed

+446
-9
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+446
-9
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+3-8Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ Chat completion is available through the [`create_chat_completion`](https://llam
221221
The high-level API also provides a simple interface for function calling.
222222

223223
Note that the only model that supports full function calling at this time is "functionary".
224-
The gguf-converted files for this model can be found here: [functionary-7b-v1](https://huggingface.co/abetlen/functionary-7b-v1-GGUF)
224+
The gguf-converted files for this model can be found here: [functionary-v2.2](https://huggingface.co/meetkai/functionary-medium-v2.2-GGUF)
225225

226226

227227
```python
228228
>>> from llama_cpp import Llama
229-
>>> llm = Llama(model_path="path/to/functionary/llama-model.gguf", chat_format="functionary")
229+
>>> llm = Llama(model_path="path/to/functionary/llama-model.gguf", chat_format="functionary2")
230230
>>> llm.create_chat_completion(
231231
messages = [
232232
{
@@ -260,12 +260,7 @@ The gguf-converted files for this model can be found here: [functionary-7b-v1](h
260260
}
261261
}
262262
}],
263-
tool_choice=[{
264-
"type": "function",
265-
"function": {
266-
"name": "UserDetail"
267-
}
268-
}]
263+
tool_choice="auto"
269264
)
270265
```
271266

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.