@@ -48,14 +48,14 @@ public final class GenerativeModel {
48
48
/// Initializes a new remote model with the given parameters.
49
49
///
50
50
/// - Parameters:
51
- /// - name: The name of the model to use, e.g., `"gemini-1.5-pro-latest"`; see
51
+ /// - name: The name of the model to use, for example `"gemini-1.5-pro-latest"`; see
52
52
/// [Gemini models](https://ai.google.dev/models/gemini) for a list of supported model names.
53
53
/// - apiKey: The API key for your project.
54
54
/// - generationConfig: The content generation parameters your model should use.
55
55
/// - safetySettings: A value describing what types of harmful content your model should allow.
56
56
/// - tools: A list of ``Tool`` objects that the model may use to generate the next response.
57
57
/// - systemInstruction: Instructions that direct the model to behave a certain way; currently
58
- /// only text content is supported, e.g.,
58
+ /// only text content is supported, for example
59
59
/// `ModelContent(role: "system", parts: "You are a cat. Your name is Neko.")`.
60
60
/// - toolConfig: Tool configuration for any `Tool` specified in the request.
61
61
/// - requestOptions Configuration parameters for sending requests to the backend.
@@ -154,7 +154,7 @@ public final class GenerativeModel {
154
154
/// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
155
155
/// or "direct" prompts. For
156
156
/// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)
157
- /// prompts, see `` generateContent(_:)-58rm0` `.
157
+ /// prompts, see `generateContent(_ content: @autoclosure () throws -> [ModelContent]) `.
158
158
///
159
159
/// - Parameter content: The input(s) given to the model as a prompt (see
160
160
/// ``ThrowingPartsRepresentable``
@@ -213,7 +213,7 @@ public final class GenerativeModel {
213
213
/// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
214
214
/// or "direct" prompts. For
215
215
/// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)
216
- /// prompts, see `` generateContent(_:)-58rm0` `.
216
+ /// prompts, see `generateContent(_ content: @autoclosure () throws -> [ModelContent]) `.
217
217
///
218
218
/// - Parameter content: The input(s) given to the model as a prompt (see
219
219
/// ``ThrowingPartsRepresentable``
@@ -302,7 +302,7 @@ public final class GenerativeModel {
302
302
/// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
303
303
/// or "direct" prompts. For
304
304
/// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)
305
- /// input, see `` countTokens(_:)-9spwl` `.
305
+ /// input, see `countTokens(_ content: @autoclosure () throws -> [ModelContent]) `.
306
306
///
307
307
/// - Parameter content: The input(s) given to the model as a prompt (see
308
308
/// ``ThrowingPartsRepresentable``
@@ -360,7 +360,7 @@ public final class GenerativeModel {
360
360
}
361
361
}
362
362
363
- /// See `` GenerativeModel/ countTokens(_:)-9spwl` `.
363
+ /// An error thrown in ` GenerativeModel. countTokens(_:)`.
364
364
@available ( iOS 15 . 0 , macOS 11 . 0 , macCatalyst 15 . 0 , * )
365
365
public enum CountTokensError : Error {
366
366
case internalError( underlying: Error )
0 commit comments