From e1a6d0b1641b78e924fb0b94969ab758787a0b9b Mon Sep 17 00:00:00 2001 From: Mason Dierkes Date: Tue, 24 Oct 2023 17:01:32 -0500 Subject: [PATCH] Typo in ReadME max_tokens should reflect the new name maxTokens --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a71debbb..c52bee5a 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ struct CompletionsResult: Codable, Equatable { **Example** ```swift -let query = CompletionsQuery(model: .textDavinci_003, prompt: "What is 42?", temperature: 0, max_tokens: 100, top_p: 1, frequency_penalty: 0, presence_penalty: 0, stop: ["\\n"]) +let query = CompletionsQuery(model: .textDavinci_003, prompt: "What is 42?", temperature: 0, maxTokens: 100, topP: 1, frequencyPenalty: 0, presencePenalty: 0, stop: ["\\n"]) openAI.completions(query: query) { result in //Handle result here }