OpenAILanguagesDetectionSettings
Settings for OpenAILanguagesDetection. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.
Tags: Vision
from nutrient_sdk import OpenAILanguagesDetectionSettingsConstruction
OpenAILanguagesDetectionSettings is accessed through a Document instance for per-document overrides, or via SdkSettings for SDK-wide defaults.
# Per-document overridewith Document.open("input.pdf") as doc: settings = doc.settings.open_ai_languages_detection_settings settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)SdkSettings.open_ai_languages_detection_settings.some_field = new_valueSettings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.open_ai_languages_detection_settings = other_settings is rejected.
Properties
api_endpoint
@propertydef api_endpoint(self) -> str
@api_endpoint.setterdef api_endpoint(self, value: str) -> NoneOpenAI API endpoint URL.
Type: str
Default: "https://api.openai.com/v1"
api_key
@propertydef api_key(self) -> str
@api_key.setterdef api_key(self, value: str) -> NoneOpenAI API key for authentication.
Type: str
Default: string.Empty
detail
@propertydef detail(self) -> str
@detail.setterdef detail(self, value: str) -> NoneDetail level for image analysis (low, high, auto).
Type: str
Default: "low"
max_tokens
@propertydef max_tokens(self) -> int
@max_tokens.setterdef max_tokens(self, value: int) -> NoneMaximum number of tokens in the response.
Type: int
Default: 500
model
@propertydef model(self) -> str
@model.setterdef model(self, value: str) -> NoneModel to use for language detection (e.g., “gpt-4o-mini”).
Type: str
Default: "gpt-4o-mini"
temperature
@propertydef temperature(self) -> float
@temperature.setterdef temperature(self, value: float) -> NoneTemperature for response generation (0.0 to 1.0). Lower values produce more deterministic outputs.
Type: float
Default: 0.0