AI provider profiles define the connection details for the language model used by NekoHub’s asset enrichment and skills system. All endpoints require authentication via JWT Bearer token or API key. Only one profile can be active at a time. The active profile is used for all automatic enrichment and on-demand skill runs.Documentation Index
Fetch the complete documentation index at: https://docs.nekohub.fengying.xin/llms.txt
Use this file to discover all available pages before exploring further.
List AI provider profiles
aiProviders.read
Response
Example
Get the active AI provider profile
null in data if none is configured as active.
Required permission: aiProviders.read
Response
Returns the same profile object as items in List AI provider profiles, or{ "data": null } if no active profile exists.
Example
Create an AI provider profile
isActive: true, any previously active profile is automatically deactivated.
Required permission: aiProviders.create
Request body
A descriptive name for this profile (e.g.
OpenAI GPT-4o).The base URL of the AI API. For OpenAI-compatible APIs, this is typically
https://api.openai.com/v1.The API key for authenticating with the AI service.
The model to use (e.g.
gpt-4o, claude-3-5-sonnet-20241022).Optional default system prompt to include in all AI requests made through this profile.
Whether to make this the active profile immediately. Only one profile can be active at a time.
Response — 201 Created
Returns the created AI provider profile object.Example
Update an AI provider profile
aiProviders.update
Path parameters
The unique identifier of the profile to update.
Request body
New profile name. Omit to leave unchanged.
New API base URL. Omit to leave unchanged.
New API key. Omit to leave unchanged.
New model name. Omit to leave unchanged.
New default system prompt. Omit to leave unchanged.
New active state. Setting to
true deactivates any currently active profile.Response — 200 OK
Returns the updated AI provider profile object.Example
Delete an AI provider profile
aiProviders.delete
Path parameters
The unique identifier of the profile to delete.
Response
Example
Test an AI provider configuration
profileId) or an ad-hoc configuration (by providing connection details directly).
Required permission: aiProviders.update
Request body
Optional. The ID of an existing profile to test. If provided, the saved configuration is used as the base, and any other fields in the request override it.
API base URL to test. Required if
profileId is not provided.API key to test. Required if
profileId is not provided.Model name to test.
Optional system prompt to include in the test request.