Copilot/Settings
Copilot
Configure runtime options, vendor profiles, and prompt shortcuts for ApiHug Copilot.
ApiHug Copilot uses Langchain4j as its model integration layer. That means the settings model is based on vendor profiles, runtime defaults, and reusable prompts.
Toolbar > ApiHug > Settings > AI
The settings page has three responsibilities:
Clean configuration prevents two common problems:
Toolbar > ApiHug > Settings > AI > Settings
These values apply to normal chat execution unless a session overrides them.
| Name | What it controls |
|---|---|
| Chat Memory Size | how many recent messages stay in working memory |
| Top-P | probability sampling window |
| Max Output Tokens | upper bound for response length |
| Timeout(s) | request timeout |
| Max Attempts | retry count |
| Temperature | response variability |
| Stream | streamed output |
| System Prompt | default system instruction |
| Show Detail | timing and token detail in the UI |
Toolbar > ApiHug > Settings > AI > Vendor
Copilot supports multiple profiles per provider, which is useful for development, staging, production, or model comparisons.
Use straightforward names such as OpenAI-dev, Azure-prod, or Local-Ollama.
Common provider families include:
| Name | Purpose |
|---|---|
| Name | the profile label shown in the UI |
| Description | optional explanation for the profile |
| Provider type | Common fields |
|---|---|
| OpenAI-style | URL, API Key, optional model |
| Azure AI | endpoint, API Key, deployment |
| Local runtime | local URL and optional model |
| Qianfan | API Key, Secret Key, model |
| Zhipu | API Key, model |
Any provider that exposes a compatible OpenAI-style API can usually be modeled as a custom vendor profile.
Toolbar > ApiHug > Settings > AI > Prompt
Prompt shortcuts let teams standardize repeated asks such as /explain, /review, or /api.
| Name | Purpose |
|---|---|
| name | the slash command, such as /explain |
| prompt | the full instruction body behind that command |
Keep prompt names short, unique, and easy to recognize.