vllm (haechi) 추가
This commit is contained in:
1 parent
310b85bf36
commit
e32f8ef533
13 files changed
+119
-14
No files matched your search
@@ -7,8 +7,7 @@ from models.persona import PersonaInfo
|
||||
from models.utterance_guide import StyleGuideResult, UtteranceGuide, UtteranceGuideInput
|
||||
from services.context_extraction import extract_context
|
||||
from services.persona_analysis import prepare_persona, select_strategy
|
||||
from settings import settings
|
||||
from utils.common_llm import StructuredLLM
|
||||
from utils.common_llm import create_llm
|
||||
|
||||
SYSTEM_PROMPT = """너는 독서토론에 참여하는 AI의 다음 발화를 설계한다.
|
||||
주어진 참여자로서 페르소나대로 토론에 참여한다고 보고, 발화문은 쓰지 말고 어떻게 발화할지만 정한다.
|
||||
@@ -19,7 +18,7 @@ SYSTEM_PROMPT = """너는 독서토론에 참여하는 AI의 다음 발화를
|
||||
- key_message: 핵심으로 전할 내용을 한 문장으로 쓴다.
|
||||
- tone: 발화 전략과 페르소나에 맞는 태도를 쓴다."""
|
||||
|
||||
guide_llm = StructuredLLM(settings.llm_model, settings.chatgpt_api_key)
|
||||
guide_llm = create_llm()
|
||||
|
||||
|
||||
def _render_input(guide_input: UtteranceGuideInput) -> str:
|
||||
|
||||
Reference in new issue
Block a user