Show custom OpenAI/Anthropic-compatible providers in onboarding and settings
This commit is contained in:
1 parent
4d2425dde0
commit
9996b89f72
5 files changed
+60
-4
No files matched your search
@@ -292,6 +292,9 @@ export interface ProviderCatalogEntry {
|
||||
signInUrl: string | null;
|
||||
credentialHelp: string;
|
||||
models: ProviderCatalogModel[];
|
||||
/** Set for user-configured OpenAI/Anthropic-compatible endpoints: the UI
|
||||
* collects a base URL + API key + model instead of a fixed provider form. */
|
||||
customEndpoint?: "openai" | "anthropic";
|
||||
}
|
||||
|
||||
export interface SkillDefinitionRecord {
|
||||
|
||||
@@ -136,6 +136,7 @@ const RAW_CATALOG: Omit<ProviderCatalogEntry, "models">[] = [
|
||||
capabilityTags: ["custom", "openai-compatible"],
|
||||
signInUrl: null,
|
||||
credentialHelp: "Set the base URL (ending in /v1) and an API key for any OpenAI Chat Completions–compatible endpoint, then enter the model id.",
|
||||
customEndpoint: "openai",
|
||||
},
|
||||
{
|
||||
key: "custom-anthropic",
|
||||
@@ -145,6 +146,7 @@ const RAW_CATALOG: Omit<ProviderCatalogEntry, "models">[] = [
|
||||
capabilityTags: ["custom", "anthropic-compatible"],
|
||||
signInUrl: null,
|
||||
credentialHelp: "Set the base URL and an API key for any Anthropic Messages–compatible endpoint, then enter the model id.",
|
||||
customEndpoint: "anthropic",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user