From b30d43f61a0b0ac03d8fce89dc2f50d7422b4812 Mon Sep 17 00:00:00 2001 From: Ronald Mannak Date: Sun, 14 Jul 2024 23:16:35 -0700 Subject: [PATCH] Make completionTokens optionals for embeddings (#22) --- Sources/CleverBird/chat/ChatCompletionResponse.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CleverBird/chat/ChatCompletionResponse.swift b/Sources/CleverBird/chat/ChatCompletionResponse.swift index 35d0b56..83584f4 100644 --- a/Sources/CleverBird/chat/ChatCompletionResponse.swift +++ b/Sources/CleverBird/chat/ChatCompletionResponse.swift @@ -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 }