vllm (haechi) 추가
This commit is contained in:
1 parent
310b85bf36
commit
e32f8ef533
13 files changed
+119
-14
No files matched your search
@@ -2,8 +2,7 @@
|
||||
|
||||
from models.context import DiscussionContext, render_claims
|
||||
from models.persona import PersonaInfo, PersonaInput, PersonaSummary, SpeechStrategy, TopicViewPoint
|
||||
from settings import settings
|
||||
from utils.common_llm import StructuredLLM
|
||||
from utils.common_llm import create_llm
|
||||
|
||||
INTERPRET_PROMPT = """너는 독서토론 참여자의 페르소나를 해석한다.
|
||||
키워드와 인적 정보를 바탕으로 이 사람이 어떤 사람인지, 어떻게 생각하고 말하는지를 요약한다."""
|
||||
@@ -16,7 +15,7 @@ STRATEGY_PROMPT = """너는 독서토론 참여자의 이번 발화 전략을
|
||||
공감, 반문, 정리, 새로운 시각 제시처럼 대화에 작용하는 방식을 구체적으로 쓴다.
|
||||
주장 목록에서 참여자 자신의 주장은 입장의 일관성을 지키는 데 참고한다."""
|
||||
|
||||
persona_llm = StructuredLLM(settings.llm_model, settings.chatgpt_api_key)
|
||||
persona_llm = create_llm()
|
||||
|
||||
|
||||
def _render_persona(persona_input: PersonaInput) -> str:
|
||||
|
||||
Reference in new issue
Block a user