fixed inconsistent namings
This commit is contained in:
@@ -189,8 +189,8 @@ function xai.create(api_key: string)
|
|||||||
return client
|
return client
|
||||||
end
|
end
|
||||||
|
|
||||||
function xai.responses(api_key: string, request: CompletionsRequest): CompletionsResponse
|
function xai.completions(api_key: string, request: CompletionsRequest): CompletionsResponse
|
||||||
return xai.create(api_key):responses(request)
|
return xai.create(api_key):completions(request)
|
||||||
end
|
end
|
||||||
|
|
||||||
return xai
|
return xai
|
||||||
|
|||||||
Reference in New Issue
Block a user