refresh_ionet_models: refresh_ionet_models: Manually refresh the cached model list...

View source: R/multiLLMviaionet.R

refresh_ionet_modelsR Documentation

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)

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.

Details

Refresh io.net Model Cache

Value

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

Author(s)

Satoshi Kume

Examples

## Not run: 
  # Refresh model list from API
  current_models <- refresh_ionet_models()

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

## End(Not run)

chatAI4R documentation built on Jan. 10, 2026, 5:07 p.m.