Model Parameter Values for LLM in SuiteScript 2.1

Discover how to customize LLM responses with SuiteScript 2.1's N/llm module and its adjustable model parameters.

·2 min read·8 views·View Oracle Docs

The N/llm module in SuiteScript 2.1 introduces powerful capabilities for integrating large language models (LLMs) from Oracle Cloud Infrastructure (OCI), including Cohere Command A and OpenAI GPT-OSS. This feature allows developers to customize response generation by adjusting model parameters such as creativity, response length, and diversity of output.

What are Model Parameters?

When invoking methods in the N/llm module, you can specify various parameters to control the behavior and outputs of the LLM models. For example, adjusting the temperature parameter influences the randomness and creativity of generated text; higher values yield more varied outputs, while lower values produce more deterministic responses.

Supported Methods

Here are the methods where you can utilize these model parameters:

  • llm.generateText(options)
  • llm.generateText.promise(options)
  • llm.generateTextStreamed(options)
  • llm.generateTextStreamed.promise(options)

Accepted Model Parameters

The table below outlines the various parameters you can customize when using LLMs:

ParameterAccepted RangesDefault Value
maxTokensCohere: 1 - 4,000; OpenAI: 1 - 16,000Cohere: 2,000; OpenAI: 2,000
frequencyPenaltyCohere: 0 - 1; OpenAI: -2 to 2Cohere: 0; OpenAI: 0
presencePenaltyCohere: 0 - 1; OpenAI: -2 to 2Cohere: 0; OpenAI: 0
promptCohere: 256,000; OpenAI: 128,000N/A
temperatureCohere: 0 - 1; OpenAI: 0 - 2Cohere: 0.2; OpenAI: 0.2
topKCohere: 0 - 500; OpenAI: 1 - 100,000Both: 500
topP0 - 10.7

Who This Affects

This enhancement impacts the following roles and modules:

  • Developers utilizing SuiteScript to customize LLM interactions.
  • Data Scientists interested in fine-tuning AI model responses for specific applications.
  • Administrators managing integrations within Oracle Cloud Infrastructure.

Key Takeaways

  • The N/llm module empowers developers to customize responses from LLMs in SuiteScript.
  • Various model parameters, including temperature and maxTokens, can be tailored for optimal output.
  • Understanding how to adjust these parameters can greatly enhance the application of LLMs in business processes.

Frequently Asked Questions (4)

How do model parameter values by LLM interact with existing SuiteScript features?
The article does not specify how the new model parameter values interact with existing SuiteScript features. You may need to refer to the detailed SuiteScript documentation for compatibility and integration details.
Are there specific permissions required to customize model parameter values?
The article does not mention the permissions required to customize model parameter values. Reviewing the release notes or documentation may provide additional insight into necessary permissions.
Do I need to enable a feature flag to use model parameter values by LLM in NetSuite 2026.1?
The article does not specify whether a feature flag needs to be enabled to use the model parameter values by LLM. Checking in the NetSuite system or the detailed release notes may confirm this.
Is the ability to customize model parameter values available in all editions of NetSuite 2026.1?
The article does not state whether the customizable model parameter values feature is available in all editions. Further investigation in NetSuite's edition-specific documentation would be required to confirm this.

Weekly Update History (3)

SuiteScriptupdated

Updated Model Parameter Values by LLM to include values for the OpenAI GPT-OSS model.

View Oracle Docs
SuiteScriptupdated

Updated Model Parameter Values by LLM to include the input token limit for Cohere Command A (256,000 tokens).

View Oracle Docs
SuiteScriptupdated

Updated Model Parameter Values by LLM to remove interdependency statements for the frequencyPenalty and presencePenalty parameters, which were confusing. This topic has also been moved to appear under N/llm Module instead of under llm.generateText(options).

View Oracle Docs
Source: Model Parameter Values by LLM Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in SuiteScript

View all SuiteScript articles →