Merge branch 'main' into set-message-history

This commit is contained in:
Josh Knapp 2024-12-30 21:42:23 -08:00
commit 41b0173680

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}) messages.append({"role": "user", "content": prompt})
response = client.chat.completions.create( 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", model=os.getenv('MODEL_NAME') or "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
messages=messages, messages=messages,
temperature=0.7, temperature=0.7,