From be1321fd405865c4468748c3f604ce8906b723f5 Mon Sep 17 00:00:00 2001 From: xyj <1090822794@qq.com> Date: Fri, 12 Jan 2024 13:05:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 74 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index ce09db2..5bd3e36 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,39 @@ -# 上传的参数params -```text -knowledge_base_name: ceshi -score_threshold: 0.6 -top_k:2 -appid:d597331d -api_secret:ZDUwNDAxNWI2OWQwZjA2OTQ3ZTJhNGE1 -api_key:7f91f70f4384805483d948b9aa1317e6 -``` - -# 发送消息格式 -与讯飞星火完全一致。https://www.xfyun.cn/doc/spark/Web.html -```text -{ - "header": { - "app_id": "d597331d", - "uid": "1234" - }, - "parameter": { - "chat": { - "domain": "general", - "temperature": 0.5, - "max_tokens": 2048 - } - }, - "payload": { - "message": { - "text": [ - { - "role": "user", - "content": "你是谁" - } - ] - } - } -} +# ws地址 +```ws://doamin/v1/chat``` +# 上传的参数params +```text +knowledge_base_name: ceshi +score_threshold: 0.6 +top_k:2 +appid:d597331d +api_secret:ZDUwNDAxNWI2OWQwZjA2OTQ3ZTJhNGE1 +api_key:7f91f70f4384805483d948b9aa1317e6 +``` + +# 发送消息格式 +与讯飞星火完全一致。https://www.xfyun.cn/doc/spark/Web.html +```text +{ + "header": { + "app_id": "d597331d", + "uid": "1234" + }, + "parameter": { + "chat": { + "domain": "general", + "temperature": 0.5, + "max_tokens": 2048 + } + }, + "payload": { + "message": { + "text": [ + { + "role": "user", + "content": "你是谁" + } + ] + } + } +} ``` \ No newline at end of file