@@ -50,7 +50,7 @@ public final class GenerativeModel {
5050 /// Initializes a new remote model with the given parameters.
5151 ///
5252 /// - 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
5454 /// [Gemini models](https://ai.google.dev/models/gemini) for a list of supported model names.
5555 /// - apiKey: The API key for your project.
5656 /// - generationConfig: The content generation parameters your model should use.
@@ -104,7 +104,7 @@ public final class GenerativeModel {
104104 /// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
105105 /// or "direct" prompts. For
106106 /// [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]) `.
108108 ///
109109 /// - Parameter content: The input(s) given to the model as a prompt (see
110110 /// ``ThrowingPartsRepresentable``
@@ -163,7 +163,7 @@ public final class GenerativeModel {
163163 /// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
164164 /// or "direct" prompts. For
165165 /// [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]) `.
167167 ///
168168 /// - Parameter content: The input(s) given to the model as a prompt (see
169169 /// ``ThrowingPartsRepresentable``
@@ -252,7 +252,7 @@ public final class GenerativeModel {
252252 /// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)
253253 /// or "direct" prompts. For
254254 /// [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]) `.
256256 ///
257257 /// - Parameter content: The input(s) given to the model as a prompt (see
258258 /// ``ThrowingPartsRepresentable``
@@ -306,7 +306,7 @@ public final class GenerativeModel {
306306 }
307307}
308308
309- /// See `` GenerativeModel/ countTokens(_:)-9spwl` `.
309+ /// An error thrown in ` GenerativeModel. countTokens(_:)`.
310310@available ( iOS 15 . 0 , macOS 11 . 0 , macCatalyst 15 . 0 , * )
311311public enum CountTokensError : Error {
312312 case internalError( underlying: Error )
0 commit comments