url path fix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user