gpt_5_nano
What it is
A module-level registration of a ChatModel configured to use OpenAI’s gpt-5-nano via langchain_openai.ChatOpenAI, with the API key sourced from ABIModule configuration.
Public API
- Constants
MODEL_ID: str— Set to"gpt-5-nano".PROVIDER: str— Set to"openai".
- Variables
model: ChatModel— PreconfiguredChatModelinstance wrapping aChatOpenAIclient.
Configuration/Dependencies
- Dependencies
langchain_openai.ChatOpenAInaas_abi_core.models.Model.ChatModelnaas_abi_marketplace.ai.chatgpt.ABIModulepydantic.SecretStr
- Configuration
- Expects
ABIModule.get_instance().configuration.openai_api_keyto be set (used to buildSecretStr(...)forChatOpenAI(api_key=...)).
- Expects
- Model settings
model="gpt-5-nano"temperature=0
Usage
from naas_abi_marketplace.ai.chatgpt.models import gpt_5_nano
chat_model = gpt_5_nano.model # ChatModel instance
llm = chat_model.model # underlying ChatOpenAI instance
Caveats
- This module only defines configuration and exports a prebuilt
ChatModel; it does not define any helper functions for invocation. - Importing this module requires that
ABIModulecan be instantiated and its configuration providesopenai_api_key.