sin30 commited on
Commit
e541940
·
verified ·
1 Parent(s): 05f1c46

Upload check_mogo.py

Browse files
Files changed (1) hide show
  1. check_mogo.py +6 -66
check_mogo.py CHANGED
@@ -23,30 +23,12 @@ def set_txt2txt_price_config():
23
 
24
  data = doc["data"]
25
 
26
- data["glm-4.7"] = {
27
- "completion_price": 0.016,
28
- "prompt_price": 0.004,
29
  "currency": "¥"
30
  }
31
 
32
- data["glm-4.5-air"] = {
33
- "completion_price": 0.008,
34
- "prompt_price": 0.0012,
35
- "currency": "¥"
36
- }
37
-
38
- data["MiniMax-M2.1"] = {
39
- "completion_price": 0.0084,
40
- "prompt_price": 0.0021,
41
- "currency": "¥"
42
- }
43
-
44
- # data["deepseek-v3.2"] = {
45
- # "completion_price": 1,
46
- # "prompt_price": 1,
47
- # "currency": "¥"
48
- # }
49
-
50
  # 3. 一次性把整个 data 写回去
51
  result = collection.update_one(
52
  {"name": "txt2txt_price_config"},
@@ -82,22 +64,8 @@ def set_txt2txt_config():
82
 
83
  data.append({
84
  "stream_selected": 0,
85
- "label": "glm-4.7",
86
- "value": "glm-4.7",
87
- "wechat_selected": 0,
88
- "wechat_label": 0,
89
- "selected": 0,
90
- "max_tokens": 4000,
91
- "is_think": 0,
92
- "web_label": 0,
93
- "stream_label": 0,
94
- "manufacturer": "智谱"
95
- })
96
-
97
- data.append({
98
- "stream_selected": 0,
99
- "label": "glm-4.5-air",
100
- "value": "glm-4.5-air",
101
  "wechat_selected": 0,
102
  "wechat_label": 0,
103
  "selected": 0,
@@ -105,37 +73,9 @@ def set_txt2txt_config():
105
  "is_think": 0,
106
  "web_label": 0,
107
  "stream_label": 0,
108
- "manufacturer": "智谱"
109
  })
110
 
111
- data.append({
112
- "stream_selected": 0,
113
- "label": "MiniMax-M2.1",
114
- "value": "MiniMax-M2.1",
115
- "wechat_selected": 0,
116
- "wechat_label": 0,
117
- "selected": 0,
118
- "max_tokens": 4000,
119
- "is_think": 0,
120
- "web_label": 0,
121
- "stream_label": 0,
122
- "manufacturer": "minimax"
123
- })
124
-
125
- # data.append({
126
- # "stream_selected": 0,
127
- # "label": "deepseek-v3.2",
128
- # "value": "deepseek-v3.2",
129
- # "wechat_selected": 0,
130
- # "wechat_label": 0,
131
- # "selected": 0,
132
- # "max_tokens": 4000,
133
- # "is_think": 0,
134
- # "web_label": 0,
135
- # "stream_label": 0,
136
- # "manufacturer": "华为"
137
- # })
138
-
139
  # 3. 一次性把整个 data 写回去
140
  result = collection.update_one(
141
  {"name": "txt2txt_config"},
 
23
 
24
  data = doc["data"]
25
 
26
+ data["deepseek-v3.2"] = {
27
+ "completion_price": 0.00132,
28
+ "prompt_price": 0.00088,
29
  "currency": "¥"
30
  }
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  # 3. 一次性把整个 data 写回去
33
  result = collection.update_one(
34
  {"name": "txt2txt_price_config"},
 
64
 
65
  data.append({
66
  "stream_selected": 0,
67
+ "label": "deepseek-v3.2",
68
+ "value": "deepseek-v3.2",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  "wechat_selected": 0,
70
  "wechat_label": 0,
71
  "selected": 0,
 
73
  "is_think": 0,
74
  "web_label": 0,
75
  "stream_label": 0,
76
+ "manufacturer": "华为"
77
  })
78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  # 3. 一次性把整个 data 写回去
80
  result = collection.update_one(
81
  {"name": "txt2txt_config"},