Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
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
nexlab
coderai
Commits
3ffd8f3e
Commit
3ffd8f3e
authored
Mar 09, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug logging for whisper-server transcription requests
parent
37df61f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
coderai
coderai
+5
-0
No files found.
coderai
View file @
3ffd8f3e
...
@@ -2089,18 +2089,21 @@ class WhisperServerManager:
...
@@ -2089,18 +2089,21 @@ class WhisperServerManager:
if
prompt
:
if
prompt
:
data
[
"prompt"
]
=
prompt
data
[
"prompt"
]
=
prompt
print
(
f
"DEBUG: Sending POST to {self.base_url}/inference with data={data}, file_size={len(audio_data)}"
)
response
=
requests
.
post
(
response
=
requests
.
post
(
f
"{self.base_url}/inference"
,
f
"{self.base_url}/inference"
,
files
=
files
,
files
=
files
,
data
=
data
,
data
=
data
,
timeout
=
300
timeout
=
300
)
)
print
(
f
"DEBUG: whisper-server response status={response.status_code}, body={response.text[:500] if response.text else 'empty'}"
)
if
response
.
status_code
==
200
:
if
response
.
status_code
==
200
:
return
response
.
json
()
return
response
.
json
()
else
:
else
:
return
{
"error"
:
f
"Server error: {response.status_code}"
,
"detail"
:
response
.
text
}
return
{
"error"
:
f
"Server error: {response.status_code}"
,
"detail"
:
response
.
text
}
except
Exception
as
e
:
except
Exception
as
e
:
print
(
f
"DEBUG: whisper-server exception: {e}"
)
return
{
"error"
:
str
(
e
)}
return
{
"error"
:
str
(
e
)}
def
_wait_for_server
(
self
,
timeout
:
int
=
30
)
->
bool
:
def
_wait_for_server
(
self
,
timeout
:
int
=
30
)
->
bool
:
...
@@ -2697,11 +2700,13 @@ async def create_transcription(
...
@@ -2697,11 +2700,13 @@ async def create_transcription(
if
multi_model_manager
.
whisper_server
and
multi_model_manager
.
whisper_server
.
is_running
():
if
multi_model_manager
.
whisper_server
and
multi_model_manager
.
whisper_server
.
is_running
():
#
Use
whisper
-
server
-
read
file
and
send
to
server
#
Use
whisper
-
server
-
read
file
and
send
to
server
file_content
=
await
file
.
read
()
file_content
=
await
file
.
read
()
print
(
f
"DEBUG: whisper-server transcription request - file_size={len(file_content)}, language={language}, prompt={prompt}"
)
result
=
multi_model_manager
.
whisper_server
.
transcribe
(
result
=
multi_model_manager
.
whisper_server
.
transcribe
(
file_content
,
file_content
,
language
=
language
,
language
=
language
,
prompt
=
prompt
prompt
=
prompt
)
)
print
(
f
"DEBUG: whisper-server transcription result: {result}"
)
if
"error"
in
result
:
if
"error"
in
result
:
raise
HTTPException
(
status_code
=
500
,
detail
=
result
[
"error"
])
raise
HTTPException
(
status_code
=
500
,
detail
=
result
[
"error"
])
#
Convert
whisper
-
server
response
to
OpenAI
format
#
Convert
whisper
-
server
response
to
OpenAI
format
...
...
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