Skip to content

Commit 91b3d74

Browse files
committed
Document Model to ModelName change in generate.md
1 parent 12bd325 commit 91b3d74

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

doc/functions/generate.md

+4-19
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ The supported name\-value arguments depend on the chat completion API.
9595
| `TimeOut` | Supported | Supported | Supported |
9696
| `StreamFun` | Supported | Supported | Supported |
9797
| `ResponseFormat` | Supported | Supported | Supported |
98-
| `ModelName` | Supported | | |
99-
| `Model` | | | Supported |
98+
| `ModelName` | Supported | | Supported |
10099
| `PresencePenalty` | Supported | Supported | |
101100
| `FrequencyPenalty` | Supported | Supported | |
102101
| `NumCompletions` | Supported | Supported | |
@@ -211,26 +210,12 @@ Structured output is only supported for models `"gpt-4o-mini"`, `"gpt-4o-mini-20
211210
`model.ModelName` (default) | `"gpt-4o-mini"` | `"gpt-4"` | `"gpt-3.5-turbo"` | `"dall-e-2"` | ...
212211

213212

214-
Name of the OpenAI model to use for text generation.
213+
Name of the OpenAI or Ollama model to use for text generation.
215214

215+
To use an Ollama model, first install it following the instructions at [https://ollama.com/library](https://ollama.com/library).
216216

217-
This option is only supported for [`openAIChat`](openAIChat.md) objects.
218217

219-
### `Model` — Model name
220-
221-
`model.Model` (default) | character vector | string scalar
222-
223-
224-
Name of the Ollama model to use for text generation.
225-
226-
227-
To use an Ollama model, first install it following the instructions at [https://ollama.com/library.](https://ollama.com/library.)
228-
229-
230-
This option is only supported for [`ollamaChat`](ollamaChat.md) objects.
231-
232-
233-
**Example:** `"mistral"`
218+
This option is only supported for [`openAIChat`](openAIChat.md) and [`ollamaChat`](ollamaChat.md) objects.
234219

235220
### `PresencePenalty` — Presence penalty
236221

0 commit comments

Comments
 (0)