index response before trying to index choices
This commit is contained in:
@@ -15,4 +15,4 @@ local response = xai.completions(apiKey, {
|
||||
})
|
||||
|
||||
print(response)
|
||||
print(response.choices[1].message.content == 'Working.')
|
||||
print(response.response.choices[1].message.content == 'Working.')
|
||||
|
||||
Reference in New Issue
Block a user