Skip to content

Commit

Permalink
Make completionTokens optionals for embeddings (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldmannak authored Jul 15, 2024
1 parent db18fd8 commit b30d43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CleverBird/chat/ChatCompletionResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation

public struct Usage: Codable {
public let promptTokens: Int
public let completionTokens: Int
public let completionTokens: Int?
public let totalTokens: Int
}

Expand Down

0 comments on commit b30d43f

Please sign in to comment.