openhands.server.routes.public
get_litellm_models
@app.get('/models', response_model=list[str])
async def get_litellm_models() -> list[str]
Get all models supported by LiteLLM.
This function combines models from litellm and Bedrock, removing any error-prone Bedrock models.
To get the models:
curl http://localhost:3000/api/litellm-models
Returns:
list[str]
- A sorted list of unique model names.
get_agents
@app.get('/agents', response_model=list[str])
async def get_agents() -> list[str]
Get all agents supported by LiteLLM.
To get the agents:
curl http://localhost:3000/api/agents
Returns:
list[str]
- A sorted list of agent names.
get_security_analyzers
@app.get('/security-analyzers', response_model=list[str])
async def get_security_analyzers() -> list[str]
Get all supported security analyzers.
To get the security analyzers:
curl http://localhost:3000/api/security-analyzers
Returns:
list[str]
- A sorted list of security analyzer names.
get_config
@app.get('/config', response_model=dict[str, Any])
async def get_config() -> dict[str, Any]
Get current config.
Returns:
dict[str, Any]: The current server configuration.