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-28 15:58:31 +01:00 committed by GitHub
parent 6e95beccb9
commit be498c5dd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,26 @@ When running the python script, be sure to:
## Advanced ## Advanced
### Parallel tools calls
This feature is experimental and has to be configured in the YAML of the model by enabling `function.parallel_calls`:
```yaml
name: gpt-3.5-turbo
parameters:
# Model file name
model: ggml-openllama.bin
top_p: 80
top_k: 0.9
temperature: 0.1
function:
# set to true to allow the model to call multiple functions in parallel
parallel_calls: true
```
### Use functions with grammar
It is possible to also specify the full function signature (for debugging, or to use with other clients). It is possible to also specify the full function signature (for debugging, or to use with other clients).
The chat endpoint accepts the `grammar_json_functions` additional parameter which takes a JSON schema object. The chat endpoint accepts the `grammar_json_functions` additional parameter which takes a JSON schema object.