refactor: remove mandatory transcription and image methods in LLMInterface
This commit is contained in:
parent
3e041ec12f
commit
f27d07d902
1 changed files with 0 additions and 38 deletions
|
|
@ -14,8 +14,6 @@ class LLMInterface(Protocol):
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
- acreate_structured_output(text_input: str, system_prompt: str, response_model: Type[BaseModel])
|
- acreate_structured_output(text_input: str, system_prompt: str, response_model: Type[BaseModel])
|
||||||
- create_transcript(input): Transcribe audio files to text
|
|
||||||
- transcribe_image(input): Analyze image files and return text description
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
|
@ -37,39 +35,3 @@ class LLMInterface(Protocol):
|
||||||
output.
|
output.
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
@abstractmethod
|
|
||||||
async def create_transcript(self, input) -> TranscriptionReturnType:
|
|
||||||
"""
|
|
||||||
Transcribe audio content to text.
|
|
||||||
|
|
||||||
This method should be implemented by subclasses that support audio transcription.
|
|
||||||
If not implemented, returns None and should be handled gracefully by callers.
|
|
||||||
|
|
||||||
Parameters:
|
|
||||||
-----------
|
|
||||||
- input: The path to the audio file that needs to be transcribed.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
--------
|
|
||||||
- BaseModel: A structured output containing the transcription, or None if not supported.
|
|
||||||
"""
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
@abstractmethod
|
|
||||||
async def transcribe_image(self, input) -> BaseModel:
|
|
||||||
"""
|
|
||||||
Analyze image content and return text description.
|
|
||||||
|
|
||||||
This method should be implemented by subclasses that support image analysis.
|
|
||||||
If not implemented, returns None and should be handled gracefully by callers.
|
|
||||||
|
|
||||||
Parameters:
|
|
||||||
-----------
|
|
||||||
- input: The path to the image file that needs to be analyzed.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
--------
|
|
||||||
- BaseModel: A structured output containing the image description, or None if not supported.
|
|
||||||
"""
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue