refactor: remove optional return value
This commit is contained in:
parent
a52873a71f
commit
d92d6b9d8f
2 changed files with 3 additions and 4 deletions
|
|
@ -162,6 +162,5 @@ class MistralAdapter(GenericAPIAdapter):
|
|||
"file_name": file_name,
|
||||
},
|
||||
)
|
||||
if transcription_response:
|
||||
return TranscriptionReturnType(transcription_response.text, transcription_response)
|
||||
return None
|
||||
|
||||
return TranscriptionReturnType(transcription_response.text, transcription_response)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import litellm
|
||||
import instructor
|
||||
from typing import Type, Optional
|
||||
from typing import Type
|
||||
from pydantic import BaseModel
|
||||
from openai import ContentFilterFinishReasonError
|
||||
from litellm.exceptions import ContentPolicyViolationError
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue