Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
cc7b5d12
Unverified
Commit
cc7b5d12
authored
Aug 07, 2023
by
crazywoola
Committed by
GitHub
Aug 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: doc issue in #757 (#767)
parent
f914eb95
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
conversation.py
api/controllers/service_api/app/conversation.py
+1
-1
template_chat.en.mdx
web/app/components/develop/template/template_chat.en.mdx
+1
-1
template_chat.zh.mdx
web/app/components/develop/template/template_chat.zh.mdx
+1
-1
No files found.
api/controllers/service_api/app/conversation.py
View file @
cc7b5d12
...
@@ -64,9 +64,9 @@ class ConversationDetailApi(AppApiResource):
...
@@ -64,9 +64,9 @@ class ConversationDetailApi(AppApiResource):
try
:
try
:
ConversationService
.
delete
(
app_model
,
conversation_id
,
end_user
)
ConversationService
.
delete
(
app_model
,
conversation_id
,
end_user
)
return
{
"result"
:
"success"
}
except
services
.
errors
.
conversation
.
ConversationNotExistsError
:
except
services
.
errors
.
conversation
.
ConversationNotExistsError
:
raise
NotFound
(
"Conversation Not Exists."
)
raise
NotFound
(
"Conversation Not Exists."
)
return
{
"result"
:
"success"
},
204
class
ConversationRenameApi
(
AppApiResource
):
class
ConversationRenameApi
(
AppApiResource
):
...
...
web/app/components/develop/template/template_chat.en.mdx
View file @
cc7b5d12
...
@@ -312,7 +312,7 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
...
@@ -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}'`}>
<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' }}
```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 'Content-Type: application/json' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--data-raw '{
--data-raw '{
...
...
web/app/components/develop/template/template_chat.zh.mdx
View file @
cc7b5d12
...
@@ -312,7 +312,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
...
@@ -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}'`}>
<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' }}
```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 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--header 'Content-Type: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
--data-raw '{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment