Merged view of OpenAIApiEndpointSettings, combining immutable defaults, SDK overrides, and document overrides. Property writes automatically target the appropriate level (document if available, otherwise SDK).

from nutrient import OpenAIApiEndpointSettings

Methods

set_api_endpoint

def set_api_endpoint(self, value: str) -> None

Sets the ApiEndpoint property.

Parameters:

NameTypeDescription
valuestrThe value to set for the ApiEndpoint property.

set_api_key

def set_api_key(self, value: str) -> None

Sets the ApiKey property.

Parameters:

NameTypeDescription
valuestrThe value to set for the ApiKey property.

set_max_tokens

def set_max_tokens(self, value: int) -> None

Sets the MaxTokens property.

Parameters:

NameTypeDescription
valueintThe value to set for the MaxTokens property.

set_model

def set_model(self, value: str) -> None

Sets the Model property.

Parameters:

NameTypeDescription
valuestrThe value to set for the Model property.

set_stream

def set_stream(self, value: bool) -> None

Sets the Stream property.

Parameters:

NameTypeDescription
valueboolThe value to set for the Stream property.

set_system_prompt

def set_system_prompt(self, value: str) -> None

Sets the SystemPrompt property.

Parameters:

NameTypeDescription
valuestrThe value to set for the SystemPrompt property.

set_temperature

def set_temperature(self, value: float) -> None

Sets the Temperature property.

Parameters:

NameTypeDescription
valuefloatThe value to set for the Temperature property.

Properties

api_endpoint

@property
def api_endpoint(self) -> str

Gets the ApiEndpoint property.

Type: str

Read-only property.


api_key

@property
def api_key(self) -> str

Gets the ApiKey property.

Type: str

Read-only property.


max_tokens

@property
def max_tokens(self) -> int

Gets the MaxTokens property.

Type: int

Read-only property.


model

@property
def model(self) -> str

Gets the Model property.

Type: str

Read-only property.


stream

@property
def stream(self) -> bool

Gets the Stream property.

Type: bool

Read-only property.


system_prompt

@property
def system_prompt(self) -> str

Gets the SystemPrompt property.

Type: str

Read-only property.


temperature

@property
def temperature(self) -> float

Gets the Temperature property.

Type: float

Read-only property.