forked from oomol-lab/open-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefinition.ts
More file actions
35 lines (32 loc) · 1.07 KB
/
Copy pathdefinition.ts
File metadata and controls
35 lines (32 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { ProviderDefinition } from "../../core/types.ts";
import { minimaxActions } from "./actions.ts";
const service = "minimax";
export const provider: ProviderDefinition = {
service,
displayName: "MiniMax",
categories: ["AI"],
authTypes: ["api_key"],
auth: [
{
type: "api_key",
label: "API Key",
placeholder: "MINIMAX_API_KEY",
description:
"MiniMax API key sent as an Authorization Bearer token. Create or view global keys at https://platform.minimax.io/user-center/basic-information/interface-key or China keys at https://platform.minimaxi.com/user-center/basic-information/interface-key.",
extraFields: [
{
key: "region",
label: "Region",
inputType: "text",
required: false,
secret: false,
placeholder: "global",
description:
"Optional MiniMax API region for this key. Use global for api.minimax.io or china for api.minimaxi.com.",
},
],
},
],
homepageUrl: "https://www.minimax.io",
actions: minimaxActions,
};