You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let ai_response = rust_glm.rust_chat_glm(api_key,"glm-4","Constants.toml").await; // Methods to call modified RustGLM instances
203
+
letai_response=rust_glm.rust_chat_glm(api_key,"glm-4-plus","Constants.toml").await; // Methods to call modified RustGLM instances
221
204
println!("Liliya: {}", ai_response);
222
205
223
206
ifai_response.is_empty() {
@@ -229,31 +212,31 @@ async fn main() {
229
212
```
230
213
231
214
## 3. Command Usage
232
-
The request mode here uses the separator: **#**, **:*** is required when using **glm4v** or **cogview3** inside the request mode, and only **Text @ url** is used inside **glm-4v**.
215
+
The request mode here uses the separator: **#**, **:*** is required when using **glm-4v** or **cogview-3-flash** inside the request mode, and only **Text @ url** is used inside **glm-4v**.
233
216
234
217
#### 3.1 🚀By default the **SSE** request invocation mode is used and you can use the command:
235
218
236
-
```
219
+
```text
237
220
Hello or SSE#Hello
238
221
```
239
222
240
223
#### 3.2 🚀If you wish to use **Synchronous Request Sync** or **Asynchronous Request Async**, the command can be as follows:
241
-
```
224
+
```text
242
225
sync#Hello
243
226
```
244
227
and
245
-
```
228
+
```text
246
229
async#Hello
247
230
```
248
231
249
-
#### 3.3 🚀If you want to use a **CogView3** request, as the **CogView3** here uses the command for synchronous requests, then you can just use:
250
-
```
251
-
sync#cogview3:draw a beautiful cat
232
+
#### 3.3 🚀If you want to use a **CogView-3-Flash** request, as the **CogView-3-Flash** here uses the command for synchronous requests, then you can just use:
233
+
```text
234
+
sync#cogview-3-flash:draw a beautiful cat
252
235
```
253
236
254
237
#### 3.4 🚀If you want to use **GLM-4V**, then this request is inside **SSE** and the command you need to enter is as follows:
255
-
```
256
-
sse#glm4v:What's in the picture@https://img1.baidu.com/it/u=1369931113,3388870256&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec =1703696400&t=f3028c7a1dca43a080aeb8239f09cc2f
238
+
```text
239
+
sse#glm-4v:What's in the picture@https://img1.baidu.com/it/u=1369931113,3388870256&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec =1703696400&t=f3028c7a1dca43a080aeb8239f09cc2f
0 commit comments