Go back to normal requests for llm
All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Successful in 1s
Build and push / Build-and-Push-Docker (push) Successful in 19s
Build and push / sync-argocd-app (push) Successful in 4s
Build and push / post-status-to-discord (push) Successful in 5s

This commit is contained in:
Luke R 2025-03-05 21:53:11 -08:00
parent df9a83eafd
commit 48d2cdcb4f

View File

@ -2,7 +2,6 @@ import requests
import discord
import os
import json
import httpx
my_guilds = [826547484632678450, 152921472304676865]
my_id = 144986109804412928
@ -172,8 +171,7 @@ async def send_to_llm(ctx, message):
headers = {"Content-Type": "application/json"}
try:
client = httpx.AsyncClient()
response = await client.post(url, json=payload, headers=headers)
response = requests.post(url, json=payload, headers=headers)
answer = response.json()["message"]["content"]
return remove_between(answer, "<think>", "</think>")