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
8f9125b0
Unverified
Commit
8f9125b0
authored
Mar 13, 2024
by
呆萌闷油瓶
Committed by
GitHub
Mar 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:typo (#2808)
parent
e5e97c0a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
model_entities.py
api/core/model_runtime/entities/model_entities.py
+1
-1
tts_model.py
api/core/model_runtime/model_providers/__base/tts_model.py
+2
-2
_constant.py
...e/model_runtime/model_providers/azure_openai/_constant.py
+2
-2
No files found.
api/core/model_runtime/entities/model_entities.py
View file @
8f9125b0
...
...
@@ -133,7 +133,7 @@ class ModelPropertyKey(Enum):
DEFAULT_VOICE
=
"default_voice"
VOICES
=
"voices"
WORD_LIMIT
=
"word_limit"
AUD
OI
_TYPE
=
"audio_type"
AUD
IO
_TYPE
=
"audio_type"
MAX_WORKERS
=
"max_workers"
...
...
api/core/model_runtime/model_providers/__base/tts_model.py
View file @
8f9125b0
...
...
@@ -94,8 +94,8 @@ class TTSModel(AIModel):
"""
model_schema
=
self
.
get_model_schema
(
model
,
credentials
)
if
model_schema
and
ModelPropertyKey
.
AUD
OI
_TYPE
in
model_schema
.
model_properties
:
return
model_schema
.
model_properties
[
ModelPropertyKey
.
AUD
OI
_TYPE
]
if
model_schema
and
ModelPropertyKey
.
AUD
IO
_TYPE
in
model_schema
.
model_properties
:
return
model_schema
.
model_properties
[
ModelPropertyKey
.
AUD
IO
_TYPE
]
def
_get_model_word_limit
(
self
,
model
:
str
,
credentials
:
dict
)
->
int
:
"""
...
...
api/core/model_runtime/model_providers/azure_openai/_constant.py
View file @
8f9125b0
...
...
@@ -628,7 +628,7 @@ TTS_BASE_MODELS = [
},
],
ModelPropertyKey
.
WORD_LIMIT
:
120
,
ModelPropertyKey
.
AUD
OI
_TYPE
:
'mp3'
,
ModelPropertyKey
.
AUD
IO
_TYPE
:
'mp3'
,
ModelPropertyKey
.
MAX_WORKERS
:
5
},
pricing
=
PriceConfig
(
...
...
@@ -682,7 +682,7 @@ TTS_BASE_MODELS = [
},
],
ModelPropertyKey
.
WORD_LIMIT
:
120
,
ModelPropertyKey
.
AUD
OI
_TYPE
:
'mp3'
,
ModelPropertyKey
.
AUD
IO
_TYPE
:
'mp3'
,
ModelPropertyKey
.
MAX_WORKERS
:
5
},
pricing
=
PriceConfig
(
...
...
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