Adding the ability to look at history but not including it every time #2

Merged
jknapp merged 3 commits from set-message-history into main 2024-12-31 05:46:23 +00:00
Showing only changes of commit 41b0173680 - Show all commits

View File

@ -35,6 +35,8 @@ async def get_ai_response(prompt, channel_id=None, include_history=False, histor
messages.append({"role": "user", "content": prompt})
response = client.chat.completions.create(
model=os.getenv('MODEL_NAME') or "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
messages=messages,
model=os.getenv('MODEL_NAME') or "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
messages=messages,
temperature=0.7,