Skip to content

Commit d23d71c

Browse files
Merge pull request #107 from tylersyin/main
[Embercloud] Add EmberCloud as a Provider
2 parents fd08228 + 35441e6 commit d23d71c

2 files changed

Lines changed: 139 additions & 0 deletions

File tree

general/ember-cloud.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "ember-cloud",
3+
"description": "",
4+
"default": {
5+
"params": [
6+
{ "key": "max_tokens", "defaultValue": 1024, "minValue": 1, "maxValue": 131000 },
7+
{ "key": "temperature", "defaultValue": 1, "minValue": 0, "maxValue": 2 },
8+
{ "key": "top_p", "defaultValue": 1, "minValue": 0, "maxValue": 1 },
9+
{ "key": "stop", "defaultValue": null, "type": "array-of-strings", "skipValues": [null, []] },
10+
{ "key": "stream", "defaultValue": true, "type": "boolean" },
11+
{
12+
"key": "tool_choice",
13+
"type": "non-view-manage-data",
14+
"defaultValue": null,
15+
"options": [
16+
{ "value": "none", "name": "None" },
17+
{ "value": "auto", "name": "Auto" },
18+
{ "value": "required", "name": "Required" },
19+
{ "value": "custom", "name": "Custom", "schema": { "type": "json" } }
20+
],
21+
"skipValues": [null, []],
22+
"rule": {
23+
"default": {
24+
"condition": "tools",
25+
"then": "auto",
26+
"else": null
27+
}
28+
}
29+
}
30+
],
31+
"messages": { "options": ["system", "user", "assistant"] },
32+
"type": { "primary": "chat", "supported": ["tools"] }
33+
},
34+
"glm-5": {
35+
"params": [{ "key": "max_tokens", "maxValue": 131000 }],
36+
"type": { "primary": "chat", "supported": ["tools"] }
37+
},
38+
"glm-4.7": {
39+
"params": [{ "key": "max_tokens", "maxValue": 131000 }],
40+
"type": { "primary": "chat", "supported": ["tools"] }
41+
},
42+
"glm-4.7-flash": {
43+
"params": [{ "key": "max_tokens", "maxValue": 131000 }],
44+
"type": { "primary": "chat", "supported": ["tools"] }
45+
},
46+
"glm-4.6": {
47+
"params": [{ "key": "max_tokens", "maxValue": 128000 }],
48+
"type": { "primary": "chat", "supported": ["tools"] }
49+
},
50+
"glm-4.5": {
51+
"params": [{ "key": "max_tokens", "maxValue": 96000 }],
52+
"type": { "primary": "chat", "supported": ["tools"] }
53+
},
54+
"glm-4.5-air": {
55+
"params": [{ "key": "max_tokens", "maxValue": 96000 }],
56+
"type": { "primary": "chat", "supported": ["tools"] }
57+
}
58+
}

pricing/ember-cloud.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"default": {
3+
"pricing_config": {
4+
"pay_as_you_go": {
5+
"request_token": { "price": 0 },
6+
"response_token": { "price": 0 }
7+
},
8+
"calculate": {
9+
"request": {
10+
"operation": "multiply",
11+
"operands": [
12+
{ "value": "input_tokens" },
13+
{ "value": "rates.request_token" }
14+
]
15+
},
16+
"response": {
17+
"operation": "multiply",
18+
"operands": [
19+
{ "value": "output_tokens" },
20+
{ "value": "rates.response_token" }
21+
]
22+
}
23+
},
24+
"currency": "USD"
25+
}
26+
},
27+
"glm-5": {
28+
"pricing_config": {
29+
"pay_as_you_go": {
30+
"request_token": { "price": 0.0001 },
31+
"response_token": { "price": 0.00032 },
32+
"cache_read_input_token": { "price": 0.00002 }
33+
}
34+
}
35+
},
36+
"glm-4.7": {
37+
"pricing_config": {
38+
"pay_as_you_go": {
39+
"request_token": { "price": 0.00004 },
40+
"response_token": { "price": 0.000175 },
41+
"cache_read_input_token": { "price": 0.000008 }
42+
}
43+
}
44+
},
45+
"glm-4.7-flash": {
46+
"pricing_config": {
47+
"pay_as_you_go": {
48+
"request_token": { "price": 0.000006 },
49+
"response_token": { "price": 0.00004 },
50+
"cache_read_input_token": { "price": 0.000001 }
51+
}
52+
}
53+
},
54+
"glm-4.6": {
55+
"pricing_config": {
56+
"pay_as_you_go": {
57+
"request_token": { "price": 0.000043 },
58+
"response_token": { "price": 0.000174 },
59+
"cache_read_input_token": { "price": 0.000008 }
60+
}
61+
}
62+
},
63+
"glm-4.5": {
64+
"pricing_config": {
65+
"pay_as_you_go": {
66+
"request_token": { "price": 0.00006 },
67+
"response_token": { "price": 0.00022 },
68+
"cache_read_input_token": { "price": 0.000011 }
69+
}
70+
}
71+
},
72+
"glm-4.5-air": {
73+
"pricing_config": {
74+
"pay_as_you_go": {
75+
"request_token": { "price": 0.000013 },
76+
"response_token": { "price": 0.000085 },
77+
"cache_read_input_token": { "price": 0.0000025 }
78+
}
79+
}
80+
}
81+
}

0 commit comments

Comments
 (0)