Skip to content

Commit

Permalink
変数名の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
haruki26 committed Dec 1, 2024
1 parent a93b2c9 commit d1faccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sc_system_ai/template/session_naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def create_prompt(conversation: list[tuple[str, str]]) -> str:
prompt += f"{role}: {message}{linesep}"
return prompt

def session_naming(history: list[tuple[str, str]]) -> str:
prompt = create_prompt(history)
def session_naming(conversation: list[tuple[str, str]]) -> str:
prompt = create_prompt(conversation)
model = llm.with_structured_output(Output)

resullt = model.invoke(prompt)
Expand Down

0 comments on commit d1faccc

Please sign in to comment.