Pārlūkot izejas kodu

fix: doc issue in #757 (#767)

tags/0.3.13
crazywoola pirms 2 gadiem
vecāks
revīzija
cc7b5d128b
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 1
- 1
api/controllers/service_api/app/conversation.py Parādīt failu

@@ -64,9 +64,9 @@ class ConversationDetailApi(AppApiResource):

try:
ConversationService.delete(app_model, conversation_id, end_user)
return {"result": "success"}
except services.errors.conversation.ConversationNotExistsError:
raise NotFound("Conversation Not Exists.")
return {"result": "success"}, 204

class ConversationRenameApi(AppApiResource):


+ 1
- 1
web/app/components/develop/template/template_chat.en.mdx Parādīt failu

@@ -312,7 +312,7 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
<CodeGroup title="Request" tag="POST" label="/conversations/{converation_id}/name" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/conversations/name' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>

```bash {{ title: 'cURL' }}
curl --location --request POST 'https://cloud.langgenius.dev/api/conversations/name' \
curl --location --request POST 'https://cloud.langgenius.dev/api/conversations/{converation_id}/name' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--data-raw '{

+ 1
- 1
web/app/components/develop/template/template_chat.zh.mdx Parādīt failu

@@ -312,7 +312,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
<CodeGroup title="Request" tag="POST" label="/conversations/{converation_id}/name" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/conversations/name' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{ \n "name": "", \n "user": "abc-123"\n}'`}>

```bash {{ title: 'cURL' }}
curl --location --request POST 'https://cloud.langgenius.dev/api/conversations/name' \
curl --location --request POST 'https://cloud.langgenius.dev/api/conversations/{converation_id}/name' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{

Notiek ielāde…
Atcelt
Saglabāt