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

Skip to content
Closed
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 @@ -376,7 +376,7 @@ from the Agents settings page.
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 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