First test with an LLM model
This guide lets you verify access to LLM models served by ALIDA before configuring an agent. The service uses Ollama and provides both native APIs and OpenAI-compatible endpoints.
Choose the endpoint
Two access modes are available:
- ALIDA gateway:
https://<alida-instance-url>/events/ollama/ollama-user. This is the recommended option for applications operating in ALIDA. For example, usehttps://alida.devng.alidalab.it/events/ollama/ollama-userfor the devng instance. The gateway requires an API key created in the ALIDA user interface and sent asAuthorization: Apikey <api-key>. The procedure is described in the API keys guide.
Warning
To create an API key for use with agents, you must have the ollama-user role in ALIDA. Contact an administrator to request access.
- Development instance:
https://ollama.develop.alidalab.it. Use it only if you have authorized credentials for direct access. The development instance instead requires theAuthorization: Basic <base64-credentials>header.
Warning
An API key for the development instance cannot be generated automatically; contact an administrator to request it.
Calls to the models are standard HTTP endpoints.
Set the variables
List the models
Before sending a request, retrieve the catalog and choose a value to use in place of <model>.
Generate a first response
The "stream": false parameter returns a single JSON response, which is useful for an initial test.
After verifying the model, choose and prepare an OpenCode agent or an ADK agent. Configure chat only after the agent has been deployed and started.