Skip to content

Commit 510002a

Browse files
authored
Update README.md
1 parent a451efb commit 510002a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ txt = generate(chat,"What is Model-Based Design and how is it related to Digital
132132
133133
### Calling MATLAB functions with the API
134134
135-
The optional parameter `Tools` can be used to provide function specifications to the API. The purpose of this is to enable models to generate function arguments which adhere to the provided specifications.
135+
Optionally, `Tools=functions` can be used to provide function specifications to the API. The purpose of this is to enable models to generate function arguments which adhere to the provided specifications.
136136
Note that the API is not able to directly call any function, so you should call the function and pass the values to the API directly. This process can be automated as shown in [ExampleFunctionCalling.mlx](/examples/ExampleFunctionCalling.mlx), but it's important to consider that ChatGPT can hallucinate function names, so avoid executing any arbitrary generated functions and only allow the execution of functions that you have defined.
137137

138138
For example, if you want to use the API for mathematical operations such as `sind`, instead of letting the model generate the result and risk running into hallucinations, you can give the model direct access to the function as follows:
@@ -337,4 +337,4 @@ The license is available in the license.txt file in this GitHub repository.
337337
## Community Support
338338
[MATLAB Central](https://www.mathworks.com/matlabcentral)
339339
340-
Copyright 2023-2024 The MathWorks, Inc.
340+
Copyright 2023-2024 The MathWorks, Inc.

0 commit comments

Comments
 (0)