Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(llm-connections): label TypeSafe adapter as "TypeSafe (System One)" in picker (#18670)

Hassieb Pakzad7ece17c17e79
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index 71fb131c8c..2e88c2bbaa 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -58,6 +58,15 @@ const isLangfuseCloud = Boolean(env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION);
*/
const OTHER_MODEL_OPTION = "other-model";
+/**
+ * Picker labels that differ from the stored adapter value. Naming the
+ * `systemone` API tells users that third-party providers serving it can use
+ * the TypeSafe adapter with a custom base URL.
+ */
+const ADAPTER_PICKER_LABELS: Partial<Record<LLMAdapter, string>> = {
+ [LLMAdapter.TypeSafe]: "TypeSafe (System One)",
+};
+
const isCustomModelsRequired = (adapter: LLMAdapter) =>
adapter === LLMAdapter.Azure || adapter === LLMAdapter.Bedrock;
@@ -759,7 +768,7 @@ export function CreateLLMApiKeyForm({
<SelectContent>
{adapterOptions.map((provider) => (
<SelectItem value={provider} key={provider}>
- {provider}
+ {ADAPTER_PICKER_LABELS[provider] ?? provider}
</SelectItem>
))}
{mode === "create" && (