Skip to content

mirascope.core.openai.call_params

Usage Documentation

Calls

OpenAICallParams

Bases: BaseCallParams

The parameters to use when calling the OpenAI API.

OpenAI API Reference

Attributes:

Name Type Description
audio NotRequired[ChatCompletionAudioParam | None]

...

frequency_penalty NotRequired[float | None]

...

logit_bias NotRequired[dict[str, int] | None]

...

logprobs NotRequired[bool | None]

...

max_tokens NotRequired[int | None]

...

modalities NotRequired[list[ChatCompletionModality] | None]

...

n NotRequired[int | None]

...

parallel_tool_calls NotRequired[bool]

...

presence_penalty NotRequired[float | None]

...

response_format NotRequired[ResponseFormat]

...

seed NotRequired[int | None]

...

stop NotRequired[str | list[str] | None]

...

stream_options NotRequired[ChatCompletionStreamOptionsParam | None]

...

temperature NotRequired[float | None]

...

tool_choice NotRequired[ChatCompletionToolChoiceOptionParam]

...

top_logprobs NotRequired[int | None]

...

top_p NotRequired[float | None]

...

user NotRequired[str]

...