Support for GPT-OSS Model in N/llm Module for NetSuite
The N/llm module in NetSuite now supports the GPT-OSS model, enhancing AI capabilities and text generation functionalities.
The N/llm module now offers support for the OpenAI GPT-OSS model. This enhancement allows developers to specify this model when utilizing the methods llm.generateText(options) and llm.generateTextStreamed(options), along with their promise-based counterparts.
Key Features of the GPT-OSS Model Support
- Enhanced AI Integration: The integration of the GPT-OSS model allows for improved interactions and responses from AI clients.
- Flexible Configuration: When calling the LLM methods, you can easily specify the model to adapt to specific requirements or preferences within your NetSuite applications.
Usage of llm.generateText and llm.generateTextStreamed
Both methods are designed to return the response from the language model for a given prompt. The following parameters are essential for these API calls:
options.prompt: The string prompt required for the LLM to generate text.options.chatHistory: Optional. An array of chat messages to qualify the context of the conversation.options.modelFamily: Optional. The model to be used, wherein you can refer to values from thellm.ModelFamilyenumeration.
In unlimited usage mode, the methods also allow for the passing of OCI configuration parameters, which can be set on the SuiteScript subtab of the AI Preferences page.
Important Considerations
- Ensure you have the necessary permissions set up to access and implement the GPT-OSS model in your scripts.
- Take advantage of the real-time capabilities offered by these methods, enabling your applications to provide seamless AI-driven responses.
This new support for the GPT-OSS model enhances the versatility of the N/llm module, making it an invaluable tool for developers looking to integrate advanced AI functionalities within their NetSuite environments. For more detailed information on parameters and response structures, refer to the official documentation for llm.generateText and llm.generateTextStreamed methods.
Source: This article is based on Oracle's official NetSuite documentation.
Key Takeaways
- The N/llm module supports the GPT-OSS model for better text generation.
- Developers can customize AI responses by specifying the model in API calls.
- Enhanced capabilities streamline integrations with NetSuite applications.
Frequently Asked Questions (4)
What are the primary methods available in the N/llm module for using the GPT-OSS model?
Do I need to configure any special settings for unlimited usage of the N/llm methods?
Can these N/llm methods be used in server scripts?
What is the governance for the llm.generateText method?
Was this article helpful?
More in SuiteScript
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- Attach and Detach Operations in NetSuite 2026.1
Attach and detach operations for record relationships in NetSuite enhance data management and connectivity.
- Create-Form Operation in NetSuite 2026.1 REST Web Services
Create-form operation in NetSuite 2026.1 APIs streamlines record creation and enhances efficiency.
