Add auth choice
parent
517a8eafe5
commit
52c9d3480f
|
|
@ -50,6 +50,7 @@ See [Venice AI](/providers/venice).
|
||||||
- [MiniMax](/providers/minimax)
|
- [MiniMax](/providers/minimax)
|
||||||
- [Venice (Venice AI, privacy-focused)](/providers/venice)
|
- [Venice (Venice AI, privacy-focused)](/providers/venice)
|
||||||
- [Ollama (local models)](/providers/ollama)
|
- [Ollama (local models)](/providers/ollama)
|
||||||
|
- [Qianfan](/providers/qianfan)
|
||||||
|
|
||||||
## Transcription providers
|
## Transcription providers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ See [Venice AI](/providers/venice).
|
||||||
- [MiniMax](/providers/minimax)
|
- [MiniMax](/providers/minimax)
|
||||||
- [Venice (Venice AI)](/providers/venice)
|
- [Venice (Venice AI)](/providers/venice)
|
||||||
- [Amazon Bedrock](/bedrock)
|
- [Amazon Bedrock](/bedrock)
|
||||||
|
- [Qianfan](/providers/qianfan)
|
||||||
|
|
||||||
For the full provider catalog (xAI, Groq, Mistral, etc.) and advanced configuration,
|
For the full provider catalog (xAI, Groq, Mistral, etc.) and advanced configuration,
|
||||||
see [Model providers](/concepts/model-providers).
|
see [Model providers](/concepts/model-providers).
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,8 @@ export type AuthChoiceGroupId =
|
||||||
| "minimax"
|
| "minimax"
|
||||||
| "synthetic"
|
| "synthetic"
|
||||||
| "venice"
|
| "venice"
|
||||||
| "qwen";
|
| "qwen"
|
||||||
|
| "qianfan";
|
||||||
|
|
||||||
export type AuthChoiceGroup = {
|
export type AuthChoiceGroup = {
|
||||||
value: AuthChoiceGroupId;
|
value: AuthChoiceGroupId;
|
||||||
|
|
@ -127,6 +128,12 @@ const AUTH_CHOICE_GROUP_DEFS: {
|
||||||
hint: "Account ID + Gateway ID + API key",
|
hint: "Account ID + Gateway ID + API key",
|
||||||
choices: ["cloudflare-ai-gateway-api-key"],
|
choices: ["cloudflare-ai-gateway-api-key"],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: "qianfan",
|
||||||
|
label: "Qianfan",
|
||||||
|
hint: "API key",
|
||||||
|
choices: ["qianfan-api-key"],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export function buildAuthChoiceOptions(params: {
|
export function buildAuthChoiceOptions(params: {
|
||||||
|
|
@ -218,6 +225,10 @@ export function buildAuthChoiceOptions(params: {
|
||||||
label: "MiniMax M2.1 Lightning",
|
label: "MiniMax M2.1 Lightning",
|
||||||
hint: "Faster, higher output cost",
|
hint: "Faster, higher output cost",
|
||||||
});
|
});
|
||||||
|
options.push({
|
||||||
|
value: "qianfan-api-key",
|
||||||
|
label: "Qianfan API key",
|
||||||
|
});
|
||||||
if (params.includeSkip) {
|
if (params.includeSkip) {
|
||||||
options.push({ value: "skip", label: "Skip for now" });
|
options.push({ value: "skip", label: "Skip for now" });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue