6 Update AI Providers and Models

To change an AI provider, LLM model, token limit or other provider-specific settings after deployment:

  1. Update $TSAM_DIR/deploy/TSAMSetup.cfg with desired AI profile configuration parameters.
  2. Validate the updated configuration.

    bash "$TSAM_DIR deploy TSAMDBSchemaUpdateConfig.sh" --validate-only <dbUser>

    Note:

    <dbUser> is the primary TSAM database schema user, not the TSAM DB AI user.
  3. If the provider or its credentials changed, run the regenerated credential script as the TSAM DB AI user.

    sqlplus -L "<dbAIUser>@<DB connection string>" @${TSAM_DIR}/deploy/TSAMCreateAICredential.sql

  4. Run the regenerated profile script as the TSAM DB AI user.

    sqlplus -L "<dbAIUser>@<DB connection string>" @${TSAM_DIR}/deploy/TSAMCreateAIProfile.sql

    The profile script drops and recreates the AI profiles, vector indexes, and Select AI agent objects. For a non-ADB deployment, switching to OpenAI also requires the appropriate database-side host and wallet ACEs for the TSAM DB AI user.