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
0614a7b7
Unverified
Commit
0614a7b7
authored
Mar 06, 2024
by
Yeuoly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ai-ppt
parent
8b2df503
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
615 additions
and
1 deletion
+615
-1
_position.yaml
api/core/tools/provider/_position.yaml
+1
-0
icon.png
api/core/tools/provider/builtin/aippt/_assets/icon.png
+0
-0
aippt.py
api/core/tools/provider/builtin/aippt/aippt.py
+10
-0
aippt.yaml
api/core/tools/provider/builtin/aippt/aippt.yaml
+42
-0
aippt.py
api/core/tools/provider/builtin/aippt/tools/aippt.py
+507
-0
aippt.yaml
api/core/tools/provider/builtin/aippt/tools/aippt.yaml
+54
-0
stable_diffusion.py
...rovider/builtin/stablediffusion/tools/stable_diffusion.py
+1
-1
No files found.
api/core/tools/provider/_position.yaml
View file @
0614a7b7
...
...
@@ -9,6 +9,7 @@
-
azuredalle
-
stablediffusion
-
webscraper
-
aippt
-
youtube
-
wolframalpha
-
maths
...
...
api/core/tools/provider/builtin/aippt/_assets/icon.png
0 → 100644
View file @
0614a7b7
1.92 KB
api/core/tools/provider/builtin/aippt/aippt.py
0 → 100644
View file @
0614a7b7
from
core.tools.errors
import
ToolProviderCredentialValidationError
from
core.tools.provider.builtin_tool_provider
import
BuiltinToolProviderController
from
core.tools.provider.builtin.aippt.tools.aippt
import
AIPPTGenerateTool
class
AIPPTProvider
(
BuiltinToolProviderController
):
def
_validate_credentials
(
self
,
credentials
:
dict
)
->
None
:
try
:
AIPPTGenerateTool
.
_get_api_token
(
credentials
,
user_id
=
'__dify_system__'
)
except
Exception
as
e
:
raise
ToolProviderCredentialValidationError
(
str
(
e
))
api/core/tools/provider/builtin/aippt/aippt.yaml
0 → 100644
View file @
0614a7b7
identity
:
author
:
Dify
name
:
aippt
label
:
en_US
:
AIPPT
zh_Hans
:
AIPPT
description
:
en_US
:
AI-generated PPT with one click, input your content topic, and let AI serve you one-stop
zh_Hans
:
AI一键生成PPT,输入你的内容主题,让AI为你一站式服务到底
icon
:
icon.png
credentials_for_provider
:
aippt_access_key
:
type
:
secret-input
required
:
true
label
:
en_US
:
AIPPT API key
zh_Hans
:
AIPPT API key
pt_BR
:
AIPPT API key
help
:
en_US
:
Please input your AIPPT API key
zh_Hans
:
请输入你的 AIPPT API key
pt_BR
:
Please input your AIPPT API key
placeholder
:
en_US
:
Please input your AIPPT API key
zh_Hans
:
请输入你的 AIPPT API key
pt_BR
:
Please input your AIPPT API key
url
:
https://www.aippt.cn
aippt_secret_key
:
type
:
secret-input
required
:
true
label
:
en_US
:
AIPPT Secret key
zh_Hans
:
AIPPT Secret key
pt_BR
:
AIPPT Secret key
help
:
en_US
:
Please input your AIPPT Secret key
zh_Hans
:
请输入你的 AIPPT Secret key
pt_BR
:
Please input your AIPPT Secret key
placeholder
:
en_US
:
Please input your AIPPT Secret key
zh_Hans
:
请输入你的 AIPPT Secret key
pt_BR
:
Please input your AIPPT Secret key
api/core/tools/provider/builtin/aippt/tools/aippt.py
0 → 100644
View file @
0614a7b7
This diff is collapsed.
Click to expand it.
api/core/tools/provider/builtin/aippt/tools/aippt.yaml
0 → 100644
View file @
0614a7b7
identity
:
name
:
aippt
author
:
Dify
label
:
en_US
:
AIPPT
zh_Hans
:
AIPPT
description
:
human
:
en_US
:
AI-generated PPT with one click, input your content topic, and let AI serve you one-stop
zh_Hans
:
AI一键生成PPT,输入你的内容主题,让AI为你一站式服务到底
llm
:
A tool used to generate PPT with AI, input your content topic, and let AI generate PPT for you.
parameters
:
-
name
:
title
type
:
string
required
:
true
label
:
en_US
:
Title
zh_Hans
:
标题
human_description
:
en_US
:
The title of the PPT.
zh_Hans
:
PPT的标题。
llm_description
:
The title of the PPT, which will be used to generate the PPT outline.
form
:
llm
-
name
:
outline
type
:
string
required
:
false
label
:
en_US
:
Outline
zh_Hans
:
大纲
human_description
:
en_US
:
The outline of the PPT
zh_Hans
:
PPT的大纲
llm_description
:
The outline of the PPT, which will be used to generate the PPT content. provide it if you have.
form
:
llm
-
name
:
llm
type
:
select
required
:
true
label
:
en_US
:
LLM model
zh_Hans
:
生成大纲的LLM
options
:
-
value
:
aippt
label
:
en_US
:
AIPPT default model
zh_Hans
:
AIPPT默认模型
-
value
:
wenxin
label
:
en_US
:
Wenxin ErnieBot
zh_Hans
:
文心一言
default
:
aippt
human_description
:
en_US
:
The LLM model used for generating PPT outline.
zh_Hans
:
用于生成PPT大纲的LLM模型。
form
:
form
api/core/tools/provider/builtin/stablediffusion/tools/stable_diffusion.py
View file @
0614a7b7
...
...
@@ -165,7 +165,7 @@ class StableDiffusionTool(BuiltinTool):
except
Exception
as
e
:
raise
ToolProviderCredentialValidationError
(
f
'Failed to get models, {e}'
)
def
get_sd_models
(
self
)
->
L
ist
[
str
]:
def
get_sd_models
(
self
)
->
l
ist
[
str
]:
"""
get sd models
"""
...
...
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