Modules§
Structs§
- Annotated
Delta - Completion
Tokens Details - Completion
Usage - Usage statistics for the completion request
- Generic
Completion Response - Common structure for chat completion responses; the only delta is the type of choices which differs between streaming and non-streaming requests.
- Prompt
Tokens Details
Enums§
- Streaming
Delta - Represents a streaming response from the OpenAI API
The object is generalized on R, which is the type of the response.
For SSE streaming responses, the expected
data:field is always a JSON object corresponding toR; however, the comments in the SSE stream:may correspond to other types of information, such as performance metrics, as represented by other arms of this enum.
Constants§
- FREQUENCY_
PENALTY_ RANGE - Allowed range of values for OpenAI’s
frequency_penaltysampling option - MAX_
FREQUENCY_ PENALTY - Maximum allowed value for OpenAI’s
frequency_penaltysampling option - MAX_
PRESENCE_ PENALTY - Maximum allowed value for OpenAI’s
presence_penaltysampling option - MAX_
TEMPERATURE - Maximum allowed value for OpenAI’s
temperaturesampling option - MAX_
TOP_ P - Maximum allowed value for OpenAI’s
top_psampling option - MIN_
FREQUENCY_ PENALTY - Minimum allowed value for OpenAI’s
frequency_penaltysampling option - MIN_
PRESENCE_ PENALTY - Minimum allowed value for OpenAI’s
presence_penaltysampling option - MIN_
TEMPERATURE - Minimum allowed value for OpenAI’s
temperaturesampling option - MIN_
TOP_ P - Minimum allowed value for OpenAI’s
top_psampling option - PRESENCE_
PENALTY_ RANGE - Allowed range of values for OpenAI’s
presence_penaltysampling option - TEMPERATURE_
RANGE - Allowed range of values for OpenAI’s `temperature`` sampling option
- TOP_
P_ RANGE - Allowed range of values for OpenAI’s
top_psampling option
Traits§
Functions§
- scale_
value - scale value in
srcrange todstrange