From 2ec76d2c9febea2c28c29244c35e1ac6c5f5adf7 Mon Sep 17 00:00:00 2001 From: markus klein Date: Thu, 30 Nov 2023 14:53:28 +0100 Subject: [PATCH] fix API tokens in doctests --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fe5d8d7..4d874fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -226,7 +226,7 @@ impl Client { /// use aleph_alpha_client::{Client, Error, How, TaskTokenization}; /// /// async fn tokenize() -> Result<(), Error> { - /// let client = Client::new(AA_API_TOKEN)?; + /// let client = Client::new("AA_API_TOKEN")?; /// /// // Name of the model for which we want to tokenize text. /// let model = "luminous-base"; @@ -262,7 +262,7 @@ impl Client { /// use aleph_alpha_client::{Client, Error, How, TaskDetokenization}; /// /// async fn detokenize() -> Result<(), Error> { - /// let client = Client::new(AA_API_TOKEN)?; + /// let client = Client::new("AA_API_TOKEN")?; /// /// // Specify the name of the model whose tokenizer was used to generate the input token ids. /// let model = "luminous-base";