Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
70c985fe
Unverified
Commit
70c985fe
authored
Jun 25, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jun 25, 2024
Browse files
Merge pull request #3447 from ben-z/stt-model-configurable
fix: Make STT model configurable
parents
b0ed8ded
044bd003
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/audio/main.py
backend/apps/audio/main.py
+1
-1
No files found.
backend/apps/audio/main.py
View file @
70c985fe
...
@@ -325,7 +325,7 @@ def transcribe(
...
@@ -325,7 +325,7 @@ def transcribe(
headers
=
{
"Authorization"
:
f
"Bearer
{
app
.
state
.
config
.
STT_OPENAI_API_KEY
}
"
}
headers
=
{
"Authorization"
:
f
"Bearer
{
app
.
state
.
config
.
STT_OPENAI_API_KEY
}
"
}
files
=
{
"file"
:
(
filename
,
open
(
file_path
,
"rb"
))}
files
=
{
"file"
:
(
filename
,
open
(
file_path
,
"rb"
))}
data
=
{
"model"
:
"whisper-1"
}
data
=
{
"model"
:
app
.
state
.
config
.
STT_MODEL
}
print
(
files
,
data
)
print
(
files
,
data
)
...
...
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