diff --git a/README.md b/README.md index 818038287804f43ea29b58b575b16b403ebe76e3..16d7f4f990f6f8f8246ecf6f634c224723adb00f 100644 --- a/README.md +++ b/README.md @@ -378,6 +378,7 @@ curl -X POST \ ``` - 运行后你会获得一个 Token 信息,之后在 curl.sh 中替换 Authorization: Bearer 后面的值。就可以执行测试了。 +- [curl-cogview-3.sh](https://github.com/fuzhengwei/chatglm-sdk-java/blob/master/docs/curl/curl-cogview-3.sh) | [curl-glm-3-turbo.sh](https://github.com/fuzhengwei/chatglm-sdk-java/blob/master/docs/curl/curl-glm-3-turbo.sh) | [curl-glm-4.sh](https://github.com/fuzhengwei/chatglm-sdk-java/blob/master/docs/curl/curl-glm-4.sh) | [curl-glm-4v.sh](https://github.com/fuzhengwei/chatglm-sdk-java/blob/master/docs/curl/curl-glm-4v.sh) ## 3. 程序接入 diff --git a/curl.sh b/docs/curl/curl.sh similarity index 58% rename from curl.sh rename to docs/curl/curl.sh index 486c862093f8e49589544b1793b89f111a369177..948905b7ab9de1bf66dace04c733cba9fd116eda 100644 --- a/curl.sh +++ b/docs/curl/curl.sh @@ -4,16 +4,16 @@ curl -X POST \ -H "User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)" \ -H "Accept: text/event-stream" \ -d '{ - "top_p": 0.7, - "sseFormat": "data", - "temperature": 0.9, - "incremental": true, - "request_id": "xfg-1696992276607", - "prompt": [ - { - "role": "user", - "content": "写个java冒泡排序" - } - ] - }' \ + "top_p": 0.7, + "sseFormat": "data", + "temperature": 0.9, + "incremental": true, + "request_id": "xfg-1696992276607", + "prompt": [ + { + "role": "user", + "content": "写个java冒泡排序" + } + ] + }' \ http://open.bigmodel.cn/api/paas/v3/model-api/chatglm_lite/sse-invoke \ No newline at end of file