-
- Models exposed through this endpoint, with the per-1k
- input/output prices used for cost tracking. Empty = all
- catalog models allowed at catalog prices. Cache rates left
- empty fall back to NetBird's defaults for the model; 0
- bills cached tokens at the input rate.
-
+
+
+ Models exposed through this endpoint, with the per-1k
+ input/output prices used for cost tracking. Empty = all
+ catalog models allowed at catalog prices. Cache rates left
+ empty fall back to NetBird's defaults for the model; 0
+ bills cached tokens at the input rate.
+
+
@@ -1556,6 +1669,7 @@ export default function AIProviderModal({
variant={"primary"}
onClick={() => setTab("models")}
disabled={!canContinueFromProvider}
+ data-testid={"agent-network-provider-continue"}
>
Continue
@@ -1574,6 +1688,7 @@ export default function AIProviderModal({
variant={"primary"}
onClick={() => setTab("mappings")}
disabled={!canContinueFromProvider}
+ data-testid={"agent-network-provider-continue"}
>
Continue
@@ -1582,6 +1697,7 @@ export default function AIProviderModal({
variant={"primary"}
onClick={handleSubmit}
disabled={!canContinueFromProvider}
+ data-testid={"agent-network-provider-submit"}
>
{isEdit ? (
"Save Changes"
@@ -1604,6 +1720,7 @@ export default function AIProviderModal({
variant={"primary"}
onClick={handleSubmit}
disabled={!canContinueFromProvider}
+ data-testid={"agent-network-provider-submit"}
>
{isEdit ? (
"Save Changes"
@@ -1986,12 +2103,15 @@ function ModelRowEditor({
function MappingRow({
header,
sourceLabel,
+ "data-testid": dataTestId,
}: {
header: string;
sourceLabel: string;
+ "data-testid"?: string;
}) {
return (
All models;
+ return (
+
+ All models
+
+ );
}
return (
-
+
{provider.models.length} configured
);
@@ -196,7 +206,11 @@ export default function AgentProvidersTable({
const AddProviderButton = () => {
const { openWizard } = useAIProviders();
return (
-