Skip to content

Commit ae46982

Browse files
Cosmetic changes for openAIChat reference page
1 parent b272344 commit ae46982

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

doc/functions/openAIChat.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Connect to OpenAI™ Chat Completion API
1717

1818
`chat = openAIChat(___,Name=Value)`
1919

20-
---
2120

2221
## Description
2322

@@ -41,12 +40,8 @@ To connect to the OpenAI API, you need a valid API key. For information on how t
4140

4241
`chat = openAIChat(___,PropertyName=PropertyValue)` specifies properties that are settable at construction using one or more name\-value arguments.
4342

44-
---
45-
4643
## Input Arguments
4744

48-
---
49-
5045
### `systemPrompt` – System prompt
5146

5247
character vector | string scalar
@@ -57,12 +52,8 @@ Specify the system prompt and set the `SystemPrompt` property. The system prompt
5752

5853
**Example**: "You are a helpful assistant who provides answers to user queries in iambic pentameter."
5954

60-
---
61-
6255
## Name\-Value Arguments
6356

64-
---
65-
6657
### `APIKey` – OpenAI API key
6758

6859
character vector | string scalar
@@ -84,13 +75,9 @@ Custom functions used by the model to collect or generate additional data.
8475

8576
For an example, see [Analyze Scientific Papers Using ChatGPT Function Calls](../../examples/AnalyzeScientificPapersUsingFunctionCalls.md).
8677

87-
---
88-
8978
## Properties Settable at Construction
9079
Optionally specify these properties at construction using name-value arguments. Specify `PropertyName1=PropertyValue1,...,PropertyNameN=PropertyValueN`, where `PropertyName` is the property name and `PropertyValue` is the corresponding value.
9180

92-
---
93-
9481
### `ModelName` – Model name
9582

9683
`"gpt-4o-mini"` (default) | `"gpt-4"` | `"gpt-3.5-turbo"` | `"dall-e-2"` | ...
@@ -212,8 +199,6 @@ The JSON response format is not supported for these models:
212199

213200
## Other Properties
214201

215-
---
216-
217202
### `SystemPrompt` – System prompt
218203

219204
character vector | string scalar
@@ -253,8 +238,6 @@ modelName = "gpt-4o-mini";
253238
chat = openAIChat("You are a helpful assistant awaiting further instructions.",ModelName=modelName);
254239
```
255240

256-
---
257-
258241
## Generate and Stream Text
259242
```matlab
260243
sf = @(x) fprintf("%s",x);

0 commit comments

Comments
 (0)