Files changed (1) hide show
  1. 消息路由调用用例/readme.txt +17 -0
消息路由调用用例/readme.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1、云端执行规则端点 chat-ruleEndpoint-rest.yaml
2
+ 2、云端执行规则端点 chat-ruleEndpoint-rest.yaml
3
+ 3、云端执行规则 chat-rule-rest-servicebus.yaml
4
+ 4、云端访问接口
5
+ 1) 请求接口:POST http://{cloudcore_ip}:9443/hanyuan-edge01/default/v1/chat/completions
6
+ 2) 请求参数:
7
+ {
8
+     "model": "chatglm3",
9
+     "messages": [
10
+         {"role": "user", "content": "你好"}
11
+     ],
12
+     "stream": true
13
+ }
14
+
15
+ 注:
16
+ 1) 如果需要更换命名空间,可以在.yaml配置文件中的metadata下增加namespace并设置指定的命名空间;
17
+ 2) 设置完成后,云端访问接口时,需要把接口中的default换成指定的命名空间值