Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ai-coder/agents/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,14 @@
enabled, developers can supply personal API keys for any enabled AI provider
from the Agents settings page.

### Managing personal API keys

Check warning on line 363 in docs/ai-coder/agents/models.md

View workflow job for this annotation

GitHub Actions / lint-docs

Coder.GerundHeading

Heading starts with an -ing word ('Managing'); prefer the imperative ('Install') or the noun ('Installation'). See capitalization-and-punctuation.md#no-gerund-leading-headings.

1. Navigate to the **Agents** page in the Coder dashboard.
1. Open **Settings** and select the **API Keys** tab.
1. Each enabled provider is listed with a status indicator:
- **Key saved**, your personal key is active and will be used for requests to
that provider.
- **Using shared key**, no personal key is set and Coder is using
- **Shared key**, no personal key is set and Coder is using
deployment-managed credentials for that provider.
- **No key**, no personal key or deployment-managed credential is available.
Add a personal key before you use models from this provider.
Expand All @@ -377,14 +377,14 @@
used for deployment-managed provider secrets. The dashboard never displays a
saved key, only whether one is set.

### Removing a personal key

Check warning on line 380 in docs/ai-coder/agents/models.md

View workflow job for this annotation

GitHub Actions / lint-docs

Coder.GerundHeading

Heading starts with an -ing word ('Removing'); prefer the imperative ('Install') or the noun ('Installation'). See capitalization-and-punctuation.md#no-gerund-leading-headings.

Click **Remove** on the provider card in the API Keys settings tab. Subsequent
requests use deployment-managed credentials when they are configured for that
provider. If no deployment-managed credential is available, add a new personal
key before you use models from that provider.

## Using an LLM proxy

Check warning on line 387 in docs/ai-coder/agents/models.md

View workflow job for this annotation

GitHub Actions / lint-docs

Coder.GerundHeading

Heading starts with an -ing word ('Using'); prefer the imperative ('Install') or the noun ('Installation'). See capitalization-and-punctuation.md#no-gerund-leading-headings.

Organizations that route LLM traffic through a centralized proxy, such as
LiteLLM or an internal gateway, can point a provider's **Endpoint** or **Base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export const ShowsProviderStatuses: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
await expect(await canvas.findByText("Key saved")).toBeVisible();
await expect(canvas.getByText("Using shared key")).toBeVisible();
await expect(canvas.getByText("Shared key")).toBeVisible();
await expect(canvas.getByText("No key")).toBeVisible();
await expect(
canvas.getByText(
Expand Down
6 changes: 3 additions & 3 deletions site/src/pages/AgentsPage/AgentSettingsAPIKeysPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const getProviderStatus = (

if (provider.has_central_api_key_fallback) {
return {
label: "Using shared key",
label: "Shared key",
variant: "default",
note: "The shared deployment key is being used. Add a personal key to use your own.",
};
Expand Down Expand Up @@ -133,7 +133,7 @@ const ProviderKeyPanel: FC<ProviderKeyPanelProps> = ({
<p className="m-0 text-sm text-content-secondary">{status.note}</p>
)}
</div>
<Badge size="sm" variant={status.variant} className="w-fit">
<Badge size="md" variant={status.variant} className="w-fit">
{status.label}
</Badge>
</div>
Expand Down Expand Up @@ -207,7 +207,7 @@ const ProviderKeyPanel: FC<ProviderKeyPanelProps> = ({
) : enabledModels.length > 0 ? (
<div className="flex flex-wrap gap-2">
{enabledModels.map((model) => (
<Badge key={model.id} size="xs" variant="default">
<Badge key={model.id} size="md" variant="default">
{model.display_name || model.model}
</Badge>
))}
Expand Down
Loading