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
cf547010
Commit
cf547010
authored
Jul 07, 2023
by
StyleZhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/chat-support-voice-input' into deploy/dev
parents
c93cdf27
df74153e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
audio.py
api/controllers/console/app/audio.py
+0
-6
No files found.
api/controllers/console/app/audio.py
View file @
cf547010
...
@@ -16,7 +16,6 @@ from controllers.console.wraps import account_initialization_required
...
@@ -16,7 +16,6 @@ from controllers.console.wraps import account_initialization_required
from
core.llm.error
import
LLMBadRequestError
,
LLMAPIUnavailableError
,
LLMAuthorizationError
,
LLMAPIConnectionError
,
\
from
core.llm.error
import
LLMBadRequestError
,
LLMAPIUnavailableError
,
LLMAuthorizationError
,
LLMAPIConnectionError
,
\
LLMRateLimitError
,
ProviderTokenNotInitError
,
QuotaExceededError
,
ModelCurrentlyNotSupportError
LLMRateLimitError
,
ProviderTokenNotInitError
,
QuotaExceededError
,
ModelCurrentlyNotSupportError
from
flask_restful
import
Resource
from
flask_restful
import
Resource
from
models.model
import
AppModelConfig
from
services.audio_service
import
AudioService
from
services.audio_service
import
AudioService
...
@@ -26,12 +25,7 @@ class ChatMessageAudioApi(Resource):
...
@@ -26,12 +25,7 @@ class ChatMessageAudioApi(Resource):
@
account_initialization_required
@
account_initialization_required
def
post
(
self
,
app_id
):
def
post
(
self
,
app_id
):
app_id
=
str
(
app_id
)
app_id
=
str
(
app_id
)
app_model
=
_get_app
(
app_id
,
'chat'
)
app_model
=
_get_app
(
app_id
,
'chat'
)
app_model_config
:
AppModelConfig
=
app_model
.
app_model_config
if
not
app_model_config
.
speech_to_text_dict
[
'enabled'
]:
raise
AppUnavailableError
()
file
=
request
.
files
[
'file'
]
file
=
request
.
files
[
'file'
]
...
...
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