@cherryin/api-client 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +4 -0
- package/dist/api.d.ts +4 -0
- package/dist/esm/api.d.ts +4 -0
- package/docs/FrontendModelPricing.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/api-client@0.1.
|
|
1
|
+
## @cherryin/api-client@0.1.5
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cherryin/api-client@0.1.
|
|
39
|
+
npm install @cherryin/api-client@0.1.5 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -1526,6 +1526,10 @@ export interface FrontendModelExtraInfo {
|
|
|
1526
1526
|
* FrontendModelPricing 模型成本 Model cost 所有价格字段使用 string 类型避免浮点精度损失
|
|
1527
1527
|
*/
|
|
1528
1528
|
export interface FrontendModelPricing {
|
|
1529
|
+
/**
|
|
1530
|
+
* currency_code 货币代码,例如 \"USD\", \"CNY\"
|
|
1531
|
+
*/
|
|
1532
|
+
'currency_code'?: string;
|
|
1529
1533
|
/**
|
|
1530
1534
|
* free 是否免费
|
|
1531
1535
|
*/
|
package/dist/api.d.ts
CHANGED
|
@@ -1528,6 +1528,10 @@ export interface FrontendModelExtraInfo {
|
|
|
1528
1528
|
* FrontendModelPricing 模型成本 Model cost 所有价格字段使用 string 类型避免浮点精度损失
|
|
1529
1529
|
*/
|
|
1530
1530
|
export interface FrontendModelPricing {
|
|
1531
|
+
/**
|
|
1532
|
+
* currency_code 货币代码,例如 \"USD\", \"CNY\"
|
|
1533
|
+
*/
|
|
1534
|
+
'currency_code'?: string;
|
|
1531
1535
|
/**
|
|
1532
1536
|
* free 是否免费
|
|
1533
1537
|
*/
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1528,6 +1528,10 @@ export interface FrontendModelExtraInfo {
|
|
|
1528
1528
|
* FrontendModelPricing 模型成本 Model cost 所有价格字段使用 string 类型避免浮点精度损失
|
|
1529
1529
|
*/
|
|
1530
1530
|
export interface FrontendModelPricing {
|
|
1531
|
+
/**
|
|
1532
|
+
* currency_code 货币代码,例如 \"USD\", \"CNY\"
|
|
1533
|
+
*/
|
|
1534
|
+
'currency_code'?: string;
|
|
1531
1535
|
/**
|
|
1532
1536
|
* free 是否免费
|
|
1533
1537
|
*/
|
|
@@ -6,6 +6,7 @@ FrontendModelPricing 模型成本 Model cost 所有价格字段使用 string
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**currency_code** | **string** | currency_code 货币代码,例如 \"USD\", \"CNY\" | [optional] [default to undefined]
|
|
9
10
|
**free** | **boolean** | free 是否免费 | [optional] [default to undefined]
|
|
10
11
|
**input_cost_per_token** | **string** | input_cost_per_token 输入每 token 成本 | [optional] [default to undefined]
|
|
11
12
|
**input_cost_per_token_above_128k_tokens** | **string** | input_cost_per_token_above_128k_tokens 超过 128k token 时的输入每 token 成本 | [optional] [default to undefined]
|
|
@@ -32,6 +33,7 @@ Name | Type | Description | Notes
|
|
|
32
33
|
import { FrontendModelPricing } from '@cherryin/api-client';
|
|
33
34
|
|
|
34
35
|
const instance: FrontendModelPricing = {
|
|
36
|
+
currency_code,
|
|
35
37
|
free,
|
|
36
38
|
input_cost_per_token,
|
|
37
39
|
input_cost_per_token_above_128k_tokens,
|