gair Settings Screen (Administrator)
The screen where administrators review and change the gair (AI gateway) settings of each CSN. It shows which model and engine each profile uses, how the judge and shadow mode are configured, and how many engine keys are registered and whether they are healthy. It also lets you replace a key.
📋 Overview
gair is the AI gateway inside GIIP. It classifies a request (SIMPLE / CODE / DEEP), picks the model and engine that match that class, and calls the provider. A judge call only happens when the confidence is low. These settings can differ per CSN (project), and a change applies from the next call onward.
- Who can view it: administrators only (uLevel 70 or higher). The server checks that level on both read and write.
- What the data is: the
category='gair'rows oftSystemParameter. A row for the CSN wins; otherwise the global (csn=0) row applies. - Related screen: gair access (allow/revoke) and SK registration live in other sections of the same screen.
🚀 Quick start
- Open gair access management (
/admin/gair-access) from the admin page (/admin). - In the gair settings by CSN section, pick a target CSN from the searchable dropdown.
- The Settings table shows the values that actually apply to that CSN.
- Change what you need and press Save. A confirmation shows how many items changed.
- After saving, the table is read again so you can see the stored values.
📊 Details
1. Target CSN
Search by CSN number or project name and pick one. Changing the selection reloads that CSN's settings.
2. Settings table
| Item | Meaning | Input |
|---|---|---|
| SIMPLE profile model / engine | Model and upstream used for the simple class | Model: text · Engine: select (minimax / claude) |
| CODE profile model / engine | Model and upstream used for the code class | Model: text · Engine: select (minimax / claude) |
| DEEP profile model / engine | Model and upstream used for the deep class | Model: text · Engine: select (minimax / claude) |
| Judge model | Model used for the judge call | text |
| Judge threshold | A judge call only runs when confidence is below this value. A number between 0 and 1 | number (0-1) |
| Judge endpoint | Address the judge is called at | text |
| Shadow mode | Shadow mode on/off | select (On/Off) |
| Access enabled | Whether that CSN may use gair | read only (see below) |
3. Scope badge
Next to each value the screen shows where that value comes from.
| Badge | Meaning |
|---|---|
| This CSN | The value stored for that CSN applies |
| Global | That CSN has no value, so the global default applies |
| Not set | No value applies (the router fallback is used) |
4. Engine keys table
Engine keys are never shown as values. Only the count, the length and the status are shown.
| Item | Meaning |
|---|---|
| Engine | claude / minimax / judge |
| Key status | Healthy (recent call 2xx) / Rejected or error (401, 403, ...) / No history / Not configured |
| Key count | How many key entries are registered |
| Total length | Sum of the registered key lengths, plus the length of each entry |
| Endpoint | The address that key is used for |
| New key | Enter a new value and save to replace the key. Leaving it empty keeps the current key. |
Why the value is hidden: a key is a secret. Showing it would put it in the page, the logs and any screenshot. So only the count, the length and the status are shown, and a replacement only happens when a new value is entered.
5. Saving
- Only changed items are sent. An item whose value matches the screen is left alone.
- Saving an empty value removes that CSN's override and falls back to the global default.
- On/off items are normalized to
true/falsebefore saving. - After a save the screen reads the values again to confirm the server accepted them.
6. Why access is read only here
Access (access.enabled) has a single writer: the access list section of the same screen (allow/revoke buttons).
Two writers for one row make it ambiguous which one came last, so this screen only reads it and locks the field.
Use the access list section to allow or revoke access.
7. Judge in use indicator
The router only calls the judge when both the judge endpoint and the judge key are present. The screen therefore has no separate on/off flag and reports "in use" from those two items instead.
⚠️ Things to know
- Save rules (the server checks these)
- The judge threshold must be a number between 0 and 1.
- On/off items accept only
true/falsestyle values. - A profile engine must be
minimaxorclaude. - A key is 8 to 1000 characters per entry, at most 20 entries, at most 500 characters in total, and may not contain quotes, backslashes, braces, semicolons or line breaks.
- Change history keeps the kind of change only (create / update / delete), never the value. Key values are not written there either.
- Closing the screen does not save. Press Save to apply a change.
❓ Troubleshooting
| Symptom | Check |
|---|---|
| "Access denied" | Whether the signed-in account is an administrator (uLevel 70 or higher). |
| "Settings query error" | The server may not find the admin SP. Confirm that the SP has been applied. |
| "Invalid engine name" | A profile engine must be minimax or claude. |
| "Invalid judge threshold" | The judge threshold must be a number between 0 and 1. |
| "Invalid key value" | Check the key length, entry count and forbidden characters. |
| "This parameter is managed on the access list" | Change access in the access list section. |
| A change did not take effect | Whether Save was pressed, and whether the table was re-read after saving. |
📌 Metadata
| Item | Value |
|---|---|
| Page path | /[locale]/admin/gair-access (gair settings by CSN section) |
| Permission | Administrator (uLevel 70 or higher) |
| Data source | tSystemParameter (category = gair, giipdb) · tAiGatewayUsage (key status, giipdb) |
| Related issues | giip 6221 (gair admin console - stage 2 settings), #6078 (gair access management), #7193 (organization-level blocked models) |
| Languages | Korean, English, Japanese, Chinese (Simplified and Traditional) |