From 67a9cdc13457c2cfb50c3edbf6b1c6fa71706aee Mon Sep 17 00:00:00 2001 From: cyclic Date: Tue, 23 Sep 2025 21:38:26 -0600 Subject: [PATCH] update readme with naming changes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b8a7389..0a36734 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ local client = xai.create("your-api-key-here") Make a chat completion request: ```luau -local response = client:responses({ +local response = client:completions({ model = "grok-4", messages = { { role = "user", content = "Hello, Grok!" } @@ -40,7 +40,7 @@ print(response.choices[1].message.content) For backward compatibility, you can also use the static method: ```luau -local response = xai.responses("your-api-key", request) +local response = xai.completions("your-api-key", request) ``` ## Types