Skip to content

Commit

Permalink
Renamed ChatCompletionRequestBody to ChatCompletionRequestParameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
btfranklin committed May 6, 2023
1 parent 7cce3cf commit 199626e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Created by B.T. Franklin on 4/15/23

public struct ChatCompletionRequestBody: Codable {
public struct ChatCompletionRequestParameters: Codable {
public let model: Model
public let temperature: Percentage
public let topP: Percentage?
Expand Down
2 changes: 1 addition & 1 deletion Sources/CleverBird/chat/ChatThread+complete.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Get
extension ChatThread {
public func complete() async -> ChatMessage? {

let requestBody = ChatCompletionRequestBody(
let requestBody = ChatCompletionRequestParameters(
model: self.model,
temperature: self.temperature,
topP: self.topP,
Expand Down

0 comments on commit 199626e

Please sign in to comment.