You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Represents a unique identifier for any arbitrary entity.
83
84
///
@@ -162,6 +163,7 @@ pub trait Llm<T: Config>:
162
163
typeResponse:Clone + Into<Option<String>> + Send;
163
164
/// Type representing the parameters for a prompt.
164
165
typeParameters:Debug + Clone + Send + Sync;
166
+
typePromptError:Error;
165
167
166
168
/// The maximum number of tokens that can be processed at once by an LLM model.
167
169
fnmax_context_length(&self) -> Self::Tokens;
@@ -178,7 +180,7 @@ pub trait Llm<T: Config>:
178
180
/// Calculates the number of tokens in a string.
179
181
///
180
182
/// This may vary depending on the type of tokens used by the LLM. In the case of ChatGPT, can be calculated using the [tiktoken-rs](https://github.com/zurawiki/tiktoken-rs#counting-token-length) crate.
0 commit comments