squad stats
This commit is contained in:
parent
fbfde36813
commit
2b584df1a2
1 changed files with 1 additions and 0 deletions
|
|
@ -381,6 +381,7 @@ async def ask(ctx, *, vraag: str):
|
||||||
with open(file_path_lifetimestats, "r", encoding="utf-8") as file:
|
with open(file_path_lifetimestats, "r", encoding="utf-8") as file:
|
||||||
data_lifetimestats = json.load(file)
|
data_lifetimestats = json.load(file)
|
||||||
squad_str = json.dumps(data_lifetimestats.get("squad", {}), indent=2)
|
squad_str = json.dumps(data_lifetimestats.get("squad", {}), indent=2)
|
||||||
|
print(squad_str[:300]) # eerste 300 tekens checken
|
||||||
"""Stuur een vraag naar OpenAI"""
|
"""Stuur een vraag naar OpenAI"""
|
||||||
try:
|
try:
|
||||||
response = client.chat.completions.create(
|
response = client.chat.completions.create(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue