Testing an LLM endpoint
Test a registered large language model (LLM) endpoint to confirm that Cloudera Agent Studio can reach the model and that the model supports function calling.
The Test dialog offers two tests. The basic test sends a simple chat completion request to verify connectivity. The function-calling test sends a request with a dummy tool definition to verify function-calling support. The tests use fixed requests, so you do not enter a prompt.
- You must have the Admin role. Only the Admin role can test LLM endpoints from the LLM Registration page. For more information, see User roles and capabilities.
- You must register the endpoint. For more information, see Adding an LLM endpoint.
- You must store credentials for the endpoint. If the endpoint has no stored credentials, a test fails with the message A stored API key is required. To add credentials, see Editing an LLM endpoint.
Each test displays its result in the corresponding test section. A result includes the following values:
- Status label: Shows whether the test passed or failed.
- Response time: Shows how long the request took in milliseconds (for example, 0 ms).
- Model name: Shows the name of the model that responded (for example, gpt-4o).
- Tool call status (function-calling test only): Shows Tool call: detected or Tool call: not detected. Tool call: detected indicates the model returned a tool call for the dummy tool definition.
- Error message: Appears if the test failed and contains a warning with the error details.
If a test fails, review the error message, then check the endpoint API base URL and credentials. To update them, see Editing an LLM endpoint.
