useModels
useModels(
options:object):UseModelsResult
Defined in: src/react/useModels.ts:42
React hook for fetching available LLM models. Automatically fetches all available models.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
‐ |
|
|
|
Whether to fetch models automatically on mount (default: true) |
|
|
|
Optional base URL for the API requests. |
|
|
() => |
Custom function to get auth token for API calls |
|
|
|
Optional filter for specific provider (e.g. “openai”) |
Returns
Last updated on