Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

List Available Models for Supported Providers

Source:R/chatLLM.R
list_models.Rd

Retrieve the catalog of available model IDs for one or all supportedchat - completion providers. Useful for discovering active models andavoiding typos or deprecated defaults.

Supported providers:

  • "openai" - OpenAI Chat Completions API

  • "groq" - Groq OpenAI - compatible endpoint

  • "anthropic" - Anthropic Claude API

  • "deepseek" - DeepSeek chat API

  • "dashscope" - Alibaba DashScope compatible API

  • "github" - GitHub Models OpenAI - compatible API

  • "all" - Fetch catalogs for all of the above

Arguments

provider

Character. One of"github","openai","groq","anthropic","deepseek","dashscope" or"all". Case - insensitive.

...

Additional arguments passed to the per - provider helper(e.g.limit for Anthropic, orapi_version for GitHub).

github_api_version

Character. Header value forX - GitHub - Api - Version (GitHub Models). Default"2022 - 11 - 28".

anthropic_api_version

Character. Header value foranthropic - version (Anthropic). Default"2023 - 06 - 01".

Value

Ifprovider != "all", a character vector of model IDs for thatsingle provider. Ifprovider == "all", a named list of charactervectors, one per provider.

See also

call_llm

Examples

if(FALSE){# \dontrun{Sys.setenv(OPENAI_API_KEY="sk-...")openai_models<-list_models("openai")head(openai_models)Sys.setenv(ANTHROPIC_API_KEY="sk-...")anthro_models<-list_models("anthropic", anthropic_api_version="2023-06-01")Sys.setenv(GH_MODELS_TOKEN="ghp-...")github_models<-list_models("github", github_api_version="2022-11-28")}# }

[8]ページ先頭

©2009-2026 Movatter.jp