mix req_llm.model_sync (ReqLLM v1.0.0-rc.3)

View Source

Simplified model synchronization task.

This task fetches model data from models.dev API (which now includes cost data) and saves provider JSON files to the /priv directory.

Usage

# Sync models from models.dev
mix req_llm.model_sync

# Verbose output
mix req_llm.model_sync --verbose

Output Structure

priv/models_dev/providers/
 anthropic.json         # Anthropic models with cost data
 openai.json            # OpenAI models with cost data
 google.json            # Google models with cost data
 ...                    # All other providers

Summary

Functions

Execute the synchronization process.

Functions

execute_sync(verbose? \\ false)

@spec execute_sync(boolean()) :: :ok | {:error, term()}

Execute the synchronization process.