Skip to content

Commit

Permalink
fixed a bug in from_tokens documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pitneitemeier committed Feb 21, 2024
1 parent 65688cd commit 1188f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aleph_alpha_client/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Tokens:
attention for given token ids.
Examples:
>>> token_ids = Tokens([1, 2, 3])
>>> token_ids = Tokens([1, 2, 3], controls=[])
>>> prompt = Prompt([token_ids])
"""

Expand Down Expand Up @@ -470,7 +470,7 @@ def from_tokens(
) -> "Prompt":
"""
Examples:
>>> prompt = Prompt.from_tokens(Tokens([1, 2, 3]))
>>> prompt = Prompt.from_tokens([1, 2, 3])
"""
return Prompt([Tokens(tokens, controls or [])])

Expand Down

0 comments on commit 1188f58

Please sign in to comment.