From 1188f58a7ef16cc20200af81e191865a17c7a229 Mon Sep 17 00:00:00 2001 From: pitneitemeier Date: Wed, 21 Feb 2024 10:30:37 +0100 Subject: [PATCH] fixed a bug in from_tokens documentation --- aleph_alpha_client/prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aleph_alpha_client/prompt.py b/aleph_alpha_client/prompt.py index 242cd78..bdf14b6 100644 --- a/aleph_alpha_client/prompt.py +++ b/aleph_alpha_client/prompt.py @@ -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]) """ @@ -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 [])])