diff --git a/async-openai/src/types/chat.rs b/async-openai/src/types/chat.rs index 78daa9fc..68c93e19 100644 --- a/async-openai/src/types/chat.rs +++ b/async-openai/src/types/chat.rs @@ -11,9 +11,9 @@ use crate::error::OpenAIError; pub enum Prompt { String(String), StringArray(Vec), - // Minimum value is 0, maximum value is 50256 (inclusive). - IntegerArray(Vec), - ArrayOfIntegerArray(Vec>), + // Minimum value is 0, maximum value is 4_294_967_295 (inclusive). + IntegerArray(Vec), + ArrayOfIntegerArray(Vec>), } #[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] diff --git a/async-openai/src/types/impls.rs b/async-openai/src/types/impls.rs index b683f833..8646e8f9 100644 --- a/async-openai/src/types/impls.rs +++ b/async-openai/src/types/impls.rs @@ -372,7 +372,7 @@ macro_rules! impl_from_for_integer_array { } impl_from_for_integer_array!(u32, EmbeddingInput); -impl_from_for_integer_array!(u16, Prompt); +impl_from_for_integer_array!(u32, Prompt); macro_rules! impl_from_for_array_of_integer_array { ($from_typ:ty, $to_typ:ty) => { @@ -469,7 +469,7 @@ macro_rules! impl_from_for_array_of_integer_array { } impl_from_for_array_of_integer_array!(u32, EmbeddingInput); -impl_from_for_array_of_integer_array!(u16, Prompt); +impl_from_for_array_of_integer_array!(u32, Prompt); impl From<&str> for ChatCompletionFunctionCall { fn from(value: &str) -> Self {