Learn R Programming

chatAI4R (version 1.3.1)

refresh_ionet_models: refresh_ionet_models: Manually refresh the cached model list from io.net API

Description

This function forces a refresh of the model list cache by fetching the current models from the io.net API. Use this if you suspect the model list has changed and you want to update immediately rather than waiting for the 1-hour cache to expire.

Usage

refresh_ionet_models(api_key = NULL, verbose = TRUE)

Value

A character vector of current model names from the API, or NULL if the API call failed

Arguments

api_key

Optional API key for fetching current models. Defaults to IONET_API_KEY environment variable.

verbose

Logical indicating whether to show detailed fetching information. Default is TRUE.

Author

Satoshi Kume

Details

Refresh io.net Model Cache

Examples

Run this code
if (FALSE) {
  # Refresh model list from API
  current_models <- refresh_ionet_models()

  # Refresh silently
  current_models <- refresh_ionet_models(verbose = FALSE)
}

Run the code above in your browser using DataLab