Skip to main content

OpenAiCompletionsCompat

Struct OpenAiCompletionsCompat 

Source
pub struct OpenAiCompletionsCompat {
Show 27 fields pub supports_store: Option<bool>, pub supports_developer_role: Option<bool>, pub supports_reasoning_effort: Option<bool>, pub supports_usage_in_streaming: Option<bool>, pub supports_finish_reason: Option<bool>, pub max_tokens_field: Option<String>, pub requires_tool_result_name: Option<bool>, pub requires_assistant_after_tool_result: Option<bool>, pub requires_thinking_as_text: Option<bool>, pub requires_reasoning_content_on_assistant_messages: Option<bool>, pub thinking_format: Option<String>, pub chat_template_kwargs: Option<Map<String, Value>>, pub chat_template_args: Option<Map<String, Value>>, pub open_router_routing: Option<Map<String, Value>>, pub vercel_gateway_routing: Option<Map<String, Value>>, pub zai_tool_stream: Option<bool>, pub thinking_token_budget_field: Option<String>, pub supports_thinking_token_budget: Option<bool>, pub supports_open_ai_grammar_tools: Option<bool>, pub supports_mid_convo_system_messages: Option<bool>, pub supports_mid_convo_tool_additions: Option<bool>, pub supports_strict_mode: Option<bool>, pub cache_control_format: Option<String>, pub send_session_affinity_headers: Option<bool>, pub session_affinity_format: Option<String>, pub supports_long_cache_retention: Option<bool>, pub vllm_priority: Option<f64>,
}
Expand description

compat for openai-completions.

Fields§

§supports_store: Option<bool>§supports_developer_role: Option<bool>§supports_reasoning_effort: Option<bool>§supports_usage_in_streaming: Option<bool>§supports_finish_reason: Option<bool>§max_tokens_field: Option<String>

max_completion_tokens or max_tokens.

§requires_tool_result_name: Option<bool>§requires_assistant_after_tool_result: Option<bool>§requires_thinking_as_text: Option<bool>§requires_reasoning_content_on_assistant_messages: Option<bool>§thinking_format: Option<String>§chat_template_kwargs: Option<Map<String, Value>>§chat_template_args: Option<Map<String, Value>>§open_router_routing: Option<Map<String, Value>>§vercel_gateway_routing: Option<Map<String, Value>>§zai_tool_stream: Option<bool>§thinking_token_budget_field: Option<String>§supports_thinking_token_budget: Option<bool>§supports_open_ai_grammar_tools: Option<bool>§supports_mid_convo_system_messages: Option<bool>§supports_mid_convo_tool_additions: Option<bool>§supports_strict_mode: Option<bool>§cache_control_format: Option<String>§send_session_affinity_headers: Option<bool>§session_affinity_format: Option<String>§supports_long_cache_retention: Option<bool>§vllm_priority: Option<f64>

Trait Implementations§

Source§

impl Clone for OpenAiCompletionsCompat

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OpenAiCompletionsCompat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OpenAiCompletionsCompat

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for OpenAiCompletionsCompat

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for OpenAiCompletionsCompat

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for OpenAiCompletionsCompat

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.