@@ -50,7 +50,7 @@ public final class GenerativeModel {
50
50
/// Initializes a new remote model with the given parameters.
51
51
///
52
52
/// - Parameters:
53
- /// - name: The name of the model to use, e.g., `"gemini-1.0-pro"`; see
53
+ /// - name: The name of the model to use, for example `"gemini-1.0-pro"`; see
54
54
/// [Gemini models](https://ai.google.dev/models/gemini) for a list of supported model names.
55
55
/// - apiKey: The API key for your project.
56
56
/// - generationConfig: The content generation parameters your model should use.
@@ -104,7 +104,7 @@ public final class GenerativeModel {
104
104
/// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
105
105
/// or "direct" prompts. For
106
106
/// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)
107
- /// prompts, see `` generateContent(_:)-58rm0` `.
107
+ /// prompts, see `generateContent(_ content: @autoclosure () throws -> [ModelContent]) `.
108
108
///
109
109
/// - Parameter content: The input(s) given to the model as a prompt (see
110
110
/// ``ThrowingPartsRepresentable``
@@ -163,7 +163,7 @@ public final class GenerativeModel {
163
163
/// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
164
164
/// or "direct" prompts. For
165
165
/// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)
166
- /// prompts, see ``generateContent(_:)-58rm0` `.
166
+ /// prompts, see `generateContentStream(_ content: @autoclosure () throws -> [ModelContent]) `.
167
167
///
168
168
/// - Parameter content: The input(s) given to the model as a prompt (see
169
169
/// ``ThrowingPartsRepresentable``
@@ -252,7 +252,7 @@ public final class GenerativeModel {
252
252
/// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
253
253
/// or "direct" prompts. For
254
254
/// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)
255
- /// input, see `` countTokens(_:)-9spwl` `.
255
+ /// input, see `countTokens(_ content: @autoclosure () throws -> [ModelContent]) `.
256
256
///
257
257
/// - Parameter content: The input(s) given to the model as a prompt (see
258
258
/// ``ThrowingPartsRepresentable``
@@ -306,7 +306,7 @@ public final class GenerativeModel {
306
306
}
307
307
}
308
308
309
- /// See `` GenerativeModel/ countTokens(_:)-9spwl` `.
309
+ /// An error thrown in ` GenerativeModel. countTokens(_:)`.
310
310
@available ( iOS 15 . 0 , macOS 11 . 0 , macCatalyst 15 . 0 , * )
311
311
public enum CountTokensError : Error {
312
312
case internalError( underlying: Error )
0 commit comments