gpt_5_2
What it is
- A module-level definition of a
ChatModelconfigured to use OpenAI’sgpt-5.2vialangchain_openai.ChatOpenAI. - Exposes a ready-to-use
modelobject with deterministic settings (temperature=0).
Public API
- Constants
MODEL_ID: str— Model identifier ("gpt-5.2").PROVIDER: str— Provider name ("openai").
- Variables
model: naas_abi_core.models.Model.ChatModel— Preconfigured chat model wrapper:model_id=MODEL_IDprovider=PROVIDERmodel=ChatOpenAI(model=MODEL_ID, temperature=0, api_key=SecretStr(...))
Configuration/Dependencies
- Dependencies
langchain_openai.ChatOpenAInaas_abi_core.models.Model.ChatModelnaas_abi_marketplace.ai.chatgpt.ABIModulepydantic.SecretStr
- Configuration
- Requires
ABIModule.get_instance().configuration.openai_api_keyto be set; it is wrapped inSecretStrand passed toChatOpenAIasapi_key.
- Requires
Usage
from naas_abi_marketplace.ai.chatgpt.models.gpt_5_2 import model
# Use the underlying LangChain chat model
llm = model.model # ChatOpenAI instance
Caveats
- This module only defines configuration and a
modelinstance; it does not implement invocation helpers. How you callChatOpenAIdepends on your LangChain version and calling conventions. - Importing this module will access
ABIModuleconfiguration; missing/invalidopenai_api_keywill fail at import-time.