Browse Source

chore: app info add author_name (#20973)

tags/1.4.3
quicksand 4 months ago
parent
commit
3a628bc671
No account linked to committer's email address

+ 7
- 1
api/controllers/service_api/app/app.py View File

def get(self, app_model: App): def get(self, app_model: App):
"""Get app information""" """Get app information"""
tags = [tag.name for tag in app_model.tags] tags = [tag.name for tag in app_model.tags]
return {"name": app_model.name, "description": app_model.description, "tags": tags, "mode": app_model.mode}
return {
"name": app_model.name,
"description": app_model.description,
"tags": tags,
"mode": app_model.mode,
"author_name": app_model.author_name,
}




api.add_resource(AppParameterApi, "/parameters") api.add_resource(AppParameterApi, "/parameters")

+ 5
- 1
web/app/components/develop/template/template.en.mdx View File

- `name` (string) application name - `name` (string) application name
- `description` (string) application description - `description` (string) application description
- `tags` (array[string]) application tags - `tags` (array[string]) application tags
- `mode` (string) application mode
- `author_name` (string) author name
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template.ja.mdx View File

- `name` (string) アプリケーションの名前 - `name` (string) アプリケーションの名前
- `description` (string) アプリケーションの説明 - `description` (string) アプリケーションの説明
- `tags` (array[string]) アプリケーションのタグ - `tags` (array[string]) アプリケーションのタグ
- `mode` (string) アプリケーションのモード
- `author_name` (string) 作者の名前
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template.zh.mdx View File

- `name` (string) 应用名称 - `name` (string) 应用名称
- `description` (string) 应用描述 - `description` (string) 应用描述
- `tags` (array[string]) 应用标签 - `tags` (array[string]) 应用标签
- `mode` (string) 应用模式
- 'author_name' (string) 作者名称
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template_advanced_chat.en.mdx View File

- `name` (string) application name - `name` (string) application name
- `description` (string) application description - `description` (string) application description
- `tags` (array[string]) application tags - `tags` (array[string]) application tags
- `mode` (string) application mode
- `author_name` (string) application author name
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "advanced-chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template_advanced_chat.ja.mdx View File

- `name` (string) アプリケーションの名前 - `name` (string) アプリケーションの名前
- `description` (string) アプリケーションの説明 - `description` (string) アプリケーションの説明
- `tags` (array[string]) アプリケーションのタグ - `tags` (array[string]) アプリケーションのタグ
- `mode` (string) アプリケーションのモード
- `author_name` (string) 作者の名前
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "advanced-chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 3
- 1
web/app/components/develop/template/template_advanced_chat.zh.mdx View File

"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "advanced-chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template_chat.en.mdx View File

- `name` (string) application name - `name` (string) application name
- `description` (string) application description - `description` (string) application description
- `tags` (array[string]) application tags - `tags` (array[string]) application tags
- `mode` (string) application mode
- `author_name` (string) application author name
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "advanced-chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template_chat.ja.mdx View File

- `name` (string) アプリケーションの名前 - `name` (string) アプリケーションの名前
- `description` (string) アプリケーションの説明 - `description` (string) アプリケーションの説明
- `tags` (array[string]) アプリケーションのタグ - `tags` (array[string]) アプリケーションのタグ
- `mode` (string) アプリケーションのモード
- `author_name` (string) 作者の名前
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template_chat.zh.mdx View File

- `name` (string) 应用名称 - `name` (string) 应用名称
- `description` (string) 应用描述 - `description` (string) 应用描述
- `tags` (array[string]) 应用标签 - `tags` (array[string]) 应用标签
- `mode` (string) 应用模式
- 'author_name' (string) 作者名称
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "chat",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template_workflow.en.mdx View File

- `name` (string) application name - `name` (string) application name
- `description` (string) application description - `description` (string) application description
- `tags` (array[string]) application tags - `tags` (array[string]) application tags
- `mode` (string) application mode
- `author_name` (string) application author name
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "workflow",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template_workflow.ja.mdx View File

- `name` (string) アプリケーションの名前 - `name` (string) アプリケーションの名前
- `description` (string) アプリケーションの説明 - `description` (string) アプリケーションの説明
- `tags` (array[string]) アプリケーションのタグ - `tags` (array[string]) アプリケーションのタグ
- `mode` (string) アプリケーションのモード
- `author_name` (string) 作者の名前
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "workflow",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

+ 5
- 1
web/app/components/develop/template/template_workflow.zh.mdx View File

- `name` (string) 应用名称 - `name` (string) 应用名称
- `description` (string) 应用描述 - `description` (string) 应用描述
- `tags` (array[string]) 应用标签 - `tags` (array[string]) 应用标签
- `mode` (string) 应用模式
- 'author_name' (string) 作者名称
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
"tags": [ "tags": [
"tag1", "tag1",
"tag2" "tag2"
]
],
"mode": "workflow",
"author_name": "Dify"
} }
``` ```
</CodeGroup> </CodeGroup>

Loading…
Cancel
Save