Skip to content

Commit

Permalink
Removed the numberOfCompletionsToCreate parameter from the ChatThread…
Browse files Browse the repository at this point in the history
… initializer, since it was never actually used. Oops.
  • Loading branch information
btfranklin committed Aug 6, 2023
1 parent 3071a85 commit 06f79f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion Sources/CleverBird/chat/ChatThread.swift
Expand Up @@ -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,
Expand Down

0 comments on commit 06f79f2

Please sign in to comment.