From 780c6fee9c6ff450ac0665375761d1f5ae381771 Mon Sep 17 00:00:00 2001 From: alex <152680487+bodhi-crypo@users.noreply.github.com> Date: Sat, 25 Jan 2025 11:04:47 +0000 Subject: [PATCH] chore:fix typos --- rig-core/src/providers/anthropic/completion.rs | 2 +- rig-core/src/providers/gemini/completion.rs | 2 +- rig-eternalai/src/providers/eternalai.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rig-core/src/providers/anthropic/completion.rs b/rig-core/src/providers/anthropic/completion.rs index 2e1ba17b..97c6ce15 100644 --- a/rig-core/src/providers/anthropic/completion.rs +++ b/rig-core/src/providers/anthropic/completion.rs @@ -166,7 +166,7 @@ impl CompletionModel { } } -/// Anthropic requires a `max_tokens` parameter to be set, which is dependant on the model. If not +/// Anthropic requires a `max_tokens` parameter to be set, which is dependent on the model. If not /// set or if set too high, the request will fail. The following values are based on the models /// available at the time of writing. /// diff --git a/rig-core/src/providers/gemini/completion.rs b/rig-core/src/providers/gemini/completion.rs index a6606a40..6056de02 100644 --- a/rig-core/src/providers/gemini/completion.rs +++ b/rig-core/src/providers/gemini/completion.rs @@ -521,7 +521,7 @@ pub mod gemini_api_types { /// that the model doesn't apply top-k sampling and doesn't allow setting topK on requests. pub top_k: Option, /// Presence penalty applied to the next token's logprobs if the token has already been seen in the response. - /// This penalty is binary on/off and not dependant on the number of times the token is used (after the first). + /// This penalty is binary on/off and not dependent on the number of times the token is used (after the first). /// Use frequencyPenalty for a penalty that increases with each use. A positive penalty will discourage the use /// of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will /// encourage the use of tokens that have already been used in the response, decreasing the vocabulary. diff --git a/rig-eternalai/src/providers/eternalai.rs b/rig-eternalai/src/providers/eternalai.rs index 4fd15019..2f1b6704 100644 --- a/rig-eternalai/src/providers/eternalai.rs +++ b/rig-eternalai/src/providers/eternalai.rs @@ -500,7 +500,7 @@ impl completion::CompletionModel for CompletionModel { }; match prompt { None => { - tracing::info!("on-chain sytem prompt is none") + tracing::info!("on-chain system prompt is none") } Some(value) => { let temp = completion::Message {