Skip to content

Commit

Permalink
fix API tokens in doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
markus klein committed Nov 30, 2023
1 parent 65d764b commit 2ec76d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 2ec76d2

Please sign in to comment.