url path fix

This commit is contained in:
2025-10-06 00:40:48 -06:00
parent 25b57dbd07
commit f5792ed3f4

View File

@@ -236,7 +236,7 @@ function xai.create(api_key: string)
function client:completions(request: CompletionsRequest): SuccessfulApiResponse | FailedApiResponse
local config = {
url = `{baseUrl}/completions`,
url = `{baseUrl}/chat/completions`,
method = "POST",
headers = {
Authorization = "Bearer " .. api_key,