index response before trying to index choices

This commit is contained in:
2025-10-06 00:48:39 -06:00
parent f5792ed3f4
commit c84e3a0700

View File

@@ -15,4 +15,4 @@ local response = xai.completions(apiKey, {
}) })
print(response) print(response)
print(response.choices[1].message.content == 'Working.') print(response.response.choices[1].message.content == 'Working.')