Skip to content

Commit

Permalink
docs: LLM - Fixed the rendering of the example usage code blocks.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 534651247
  • Loading branch information
Ark-kun authored and copybara-github committed May 24, 2023
1 parent a0250ed commit eaaee28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vertexai/language_models/_language_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def __repr__(self):
class TextGenerationModel(_LanguageModel):
"""TextGenerationModel represents a general language model.
Examples:
Examples::
# Getting answers:
model = TextGenerationModel.from_pretrained("text-bison@001")
Expand Down Expand Up @@ -383,7 +383,7 @@ def _batch_predict(
class _ChatModel(TextGenerationModel):
"""ChatModel represents a language model that is capable of chat.
Examples:
Examples::
# Getting answers:
model = ChatModel.from_pretrained("chat-bison@001")
Expand Down Expand Up @@ -488,7 +488,7 @@ def send_message(
class TextEmbeddingModel(_LanguageModel):
"""TextEmbeddingModel converts text into a vector of floating-point numbers.
Examples:
Examples::
# Getting embedding:
model = TextEmbeddingModel.from_pretrained("textembedding-gecko@001")
Expand Down Expand Up @@ -537,7 +537,7 @@ class InputOutputTextPair:
class ChatModel(_LanguageModel):
"""ChatModel represents a language model that is capable of chat.
Examples:
Examples::
chat_model = ChatModel.from_pretrained("chat-bison@001")
Expand Down

0 comments on commit eaaee28

Please sign in to comment.