mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
12 lines
No EOL
277 B
Python
12 lines
No EOL
277 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class LLMProviderBase(ABC):
|
|
@abstractmethod
|
|
def response(self, session_id, dialogue):
|
|
"""LLM response generator"""
|
|
pass
|
|
|
|
@abstractmethod
|
|
def response_no_stream(self, system_prompt, user_prompt):
|
|
pass |