AI Provider
Description
An AI Provider is a named connection to a language-model endpoint: provider type, base URL, model name, API key, timeout and temperature. Objects are managed in the Metadata perspective and stored as JSON under:
metadata/ai-provider/
Choosing a model
The Model name list shows the models the provider serves. Hop asks the provider the first time you click the field, and Refresh models asks again (OpenAI-compatible /models, Anthropic and Mistral catalogs, Ollama /api/tags, or the GitHub Copilot CLI). Hugging Face has no list API; type a router model id. The combo stays editable so you can enter a name that is not in the list, or a variable.
Providers retire models every few months, so Hop does not pick a model for you. A new provider starts without one: choose it from the list. The model in the table below is only a suggestion. A provider saved without a model, for example one created with an earlier Hop version, still uses that built-in model. Hop then shows a warning when you save it, and writes the model it uses to the log. The built-in model changes in later Hop releases.
When a provider no longer serves the model, the error names the model and the AI provider. Open the provider, use Refresh models and choose another one.
Anthropic also reports what each model can do. Hop uses that for Anthropic providers: the AI Assistant, Structured extract and Extract graph only hold a model to a JSON schema when it supports structured outputs, and Max output tokens is lowered to the most the model accepts. When Anthropic is retiring the model, Test says so with the date, and Hop writes it to the log once when the model is used.
The Language model chat, Structured extract and Extract graph transforms and the AI Assistant use the provider’s model, and can name another model of the same provider. Their Model field lists the models the provider serves in the same way.
Use the Test button in the editor to send a short health-check prompt.
The AI Assistant uses these objects as the credential source of truth. Global configuration only stores the enable flag and the default provider name.
Do not paste a live API key into this metadata object.
Set ${AI_API_KEY} (or a similar name containing PASSWORD, SECRET or TOKEN) in an environment configuration file, or better a variable resolver expression such as #{vault:secret/data/ai:api-key}.
The same pattern applies to every other secret in the project: never hard-code it in pipelines, workflows or metadata.
See Secrets and personal information.
The Language model chat transform can optionally select a named AI Provider. The provider’s type, base URL, API key, chat model, timeout, temperature, max output tokens and thinking then take precedence over the transform’s inline values; an inline value is only used when the provider leaves that field empty. The Model field next to the provider on the transform overrides the provider’s chat model. With an Ollama provider, the context size always comes from the provider (16384 when it is empty), and an Anthropic provider without Max output tokens sends 4096 rather than the transform’s value. In particular, a temperature set on the provider overrides the temperature on every transform that uses it, so leave Temperature empty here if transforms need their own. Input/output mapping, mock mode, proxy and retries stay on the transform. See AI Provider and inline settings for the details.
Provider types
| Type | Default base URL | Suggested model | API key |
|---|---|---|---|
OpenAI |
|
Yes |
|
Grok (xAI) |
|
Yes |
|
Gemini (OpenAI-compatible) |
|
Yes |
|
Custom (OpenAI-compatible) |
(you set it) |
(you set it) |
Usually |
Anthropic |
(plugin default) |
|
Yes |
Ollama |
|
No |
|
Mistral |
|
Yes |
|
Hugging Face |
Dedicated inference endpoint URL, if you use one. Leave empty for the public inference router. |
Router model id (for example |
Yes (token) |
GitHub Copilot |
Installed Copilot CLI |
CLI default, or select a model from Refresh models |
No; uses the CLI’s logged-in account |
GitHub Copilot uses the official Java SDK to start the installed GitHub Copilot CLI. Install and
sign in to the CLI as the same operating-system user that runs Hop. Hop looks for the CLI in this
order: the Copilot CLI path field on the provider’s GitHub Copilot tab, the COPILOT_CLI_PATH
environment variable, then copilot on the PATH.
Other tools install a copilot command too, for example the AWS Copilot CLI. If the error says
unknown flag: --server, Hop started one of those: enter the path of the GitHub Copilot CLI.
Authentication remains with the CLI; Hop metadata stores no GitHub token. The session gets no tools, and Hop refuses any permission request from the CLI, so an answer cannot run commands or touch files. Every question counts against the Copilot plan of the signed-in account.
The GitHub Copilot provider works with the AI Assistant only. Language Model Chat, Structured Extract, Extract Graph and Embed Text cannot use it.
GitHub Copilot on a server, in a container or in Hop Web
On a machine without a browser, the default sign-in fails: the browser cannot reach the CLI’s callback. Sign in with a device code instead, as the user that runs Hop:
copilot login --device-code
Open the URL the CLI prints, enter the code and approve. Without a system credential store the
CLI asks to keep the token in a plain-text file under ~/.copilot: answer yes, and keep that
folder on a volume in a container.
Instead of signing in, you can give the CLI a fine-grained personal access token with the
Copilot Requests permission in COPILOT_GITHUB_TOKEN, GH_TOKEN or GITHUB_TOKEN (checked in
that order). Classic tokens (ghp_) are not accepted.
In Hop Web the CLI runs on the server, as the server’s operating-system user. Everyone who uses a GitHub Copilot provider in that Hop Web uses the account the server signed in with, and its Copilot plan.
Options
The editor shows Name and Provider at the top, and the other options on three tabs: Connection (base URL, API key, timeout), Model (model name, temperature, context size, max output tokens, thinking, structured answers) and Models per role. Saving checks that a provider type is selected and that the numbers are valid; values that use a variable are checked when the provider is used.
| Option | Description |
|---|---|
Provider |
Plugin implementation (OpenAI, Grok, …) |
Base URL |
Override the type’s default endpoint. Variables such as |
API key |
Secret stored as a Hop password field. Not sent in advisor prompts. Prefer |
Model name |
Model identifier for the chosen provider. Refresh models fills the combo from the live catalog when the provider supports it. For Hugging Face, a model id is sent to the inference router; an |
Models per role |
Optional. One model for each role this provider serves, so a single provider can back a chat transform and an embedding transform at the same time. See below. |
Timeout (seconds) |
HTTP timeout for completions. |
Temperature |
Sampling temperature, when the provider supports it. Empty by default: the parameter is not sent and the model’s own default applies. Providers saved with a value keep it.
Some models reject a temperature: newer Anthropic models, OpenAI’s reasoning models, and every Anthropic model from API version |
Context size (tokens) |
How many tokens the model can read at once: prompt, conversation history and answer together.
The AI Assistant estimates the size of every question before sending it and stops with an explanation when it clearly does not fit.
For Ollama this also sets the context window the model is loaded with ( |
Max output tokens |
The longest answer the model may write, in tokens. Leave it empty for the provider’s default, which is 4096 for Anthropic (Anthropic requires a value). A value that is too low cuts answers and proposals short. |
Thinking |
Whether a thinking model (qwen3, deepseek-r1, gpt-oss, …) reasons before it answers. * Default: leave it to the model. Most thinking models then reason. Depending on the model and the Ollama version, the answer can then include the reasoning between For transforms that call the model once per row, the reasoning usually takes most of the run time: a short Extract graph call that writes thousands of reasoning tokens with the default writes about a hundred with Off.
Adding |
Structured answers |
Off by default. When checked, the AI Assistant asks the provider to hold the model to a JSON schema: the answer text plus a list of proposals with a known type, a risk level and their parameters. The proposals then cannot come back broken, which helps small models most. Works with Ollama, OpenAI, Anthropic and Mistral. Other types (Gemini, Grok, custom OpenAI-compatible servers, Hugging Face and GitHub Copilot) answer as usual. When the provider refuses the schema, the question is asked again without it and the log says so. Some models write shorter answers this way: compare with and without it on the models you use, for example with the evaluation set described in AI technology. |
When Language Model Chat points at an AI Provider, extra transform options (proxy, retries, mock, I/O fields) are not taken from the provider.
Models per role
A provider endpoint usually serves more than one kind of model. The same OpenAI key reaches a chat model and an embedding model; the same Ollama server serves both, and a reranker besides. Models per role lets one provider object cover all of them, so the base URL and the API key are configured once.
Each row pairs a role with a model name:
| Role | Used by |
|---|---|
|
Conversation and completion, for example Language Model Chat, the AI Assistant, Structured extract and Extract graph. |
|
Turning text into a vector, for example Embed text. |
|
Scoring a passage against a query, used by rerankers. |
|
Image generation. |
|
Content moderation. |
A transform never asks which role to use: it needs one kind of model and looks up that role. Point a chat transform and an embedding transform at the same provider and each finds its own model.
Use at most one row per role, since that is what makes the lookup unambiguous. An embedding transform that needs a different model than the provider’s default for its role can override it on the transform itself. Language Model Chat works the same way through its Model field next to the provider. The model names in the transform’s own settings per model type are only used when the provider has no model.
Relationship to Model name
Model name on the Model tab is the chat model. A provider with no rows in this table behaves exactly as before: CHAT falls back to Model name, and nothing else resolves.
A CHAT row replaces Model name: the AI Assistant, Language Model Chat and Test then use the model of that row.
The Model name column offers the models that Refresh models loaded, and accepts variables such as '${EMBEDDING_MODEL}'.
The fallback is deliberately limited to CHAT. Handing a chat model to an embedding endpoint fails inside the provider with a message that is hard to act on, so a provider with no EMBEDDING row reports that plainly instead.