Aller directement au contenu principal

openhands.server.routes.public

get_litellm_models

@app.get('/models')
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 - A sorted list of unique model names.

get_agents

@app.get('/agents')
async def get_agents()

Get all agents supported by LiteLLM.

To get the agents:

curl http://localhost:3000/api/agents

Returns:

  • list - A sorted list of agent names.

get_security_analyzers

@app.get('/security-analyzers')
async def get_security_analyzers()

Get all supported security analyzers.

To get the security analyzers:

curl http://localhost:3000/api/security-analyzers

Returns:

  • list - A sorted list of security analyzer names.

get_config

@app.get('/config')
async def get_config()

Get current config