From 06f79f2fe50162f9cf35cbd2724183091f06fc54 Mon Sep 17 00:00:00 2001 From: "B.T. Franklin" Date: Sun, 6 Aug 2023 16:25:45 -0700 Subject: [PATCH] Removed the numberOfCompletionsToCreate parameter from the ChatThread initializer, since it was never actually used. Oops. --- README.md | 1 - Sources/CleverBird/chat/ChatThread.swift | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index 9d28dad..273e777 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,6 @@ In the example above, we initialized a `ChatThread` with a specific model, tempe - `model`: The model to use for the completion. - `temperature`: Controls randomness. Higher values (up to 1) generate more random outputs, while lower values generate more deterministic outputs. - `topP`: This is the nucleus sampling parameter. It specifies the probability mass to cover with the prediction. -- `numberOfCompletionsToCreate`: The number of completions to create. - `stop`: An array of strings. The model will stop generating when it encounters any of these strings. - `maxTokens`: The maximum number of tokens to generate. - `presencePenalty`: A penalty for using tokens that have already been used. diff --git a/Sources/CleverBird/chat/ChatThread.swift b/Sources/CleverBird/chat/ChatThread.swift index 014cd4e..3bf8670 100644 --- a/Sources/CleverBird/chat/ChatThread.swift +++ b/Sources/CleverBird/chat/ChatThread.swift @@ -19,7 +19,6 @@ public class ChatThread { model: ChatModel = .gpt4, temperature: Percentage = 0.7, topP: Percentage? = nil, - numberOfCompletionsToCreate: Int? = nil, stop: [String]? = nil, maxTokens: Int? = nil, presencePenalty: Penalty? = nil,