Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ actor OpenAIChatCompletionsService: ChatCompletionsStreamAPI, ChatCompletionsAPI

struct Choice: Codable, Equatable {
var message: Message
var index: Int
var finish_reason: String
var index: Int?
var finish_reason: String?
}

struct Usage: Codable, Equatable {
var prompt_tokens: Int
var completion_tokens: Int
var total_tokens: Int
var prompt_tokens: Int?
var completion_tokens: Int?
var total_tokens: Int?
}

var id: String?
Expand Down Expand Up @@ -287,7 +287,7 @@ actor OpenAIChatCompletionsService: ChatCompletionsStreamAPI, ChatCompletionsAPI
return .init(chunk: chunk, done: false)
} catch {
Logger.service.error("Error decoding stream data: \(error)")
throw error
return .init(chunk: nil, done: false)
}
}

Expand Down
4 changes: 2 additions & 2 deletions Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
APP_VERSION = 0.31.0
APP_BUILD = 333
APP_VERSION = 0.31.1
APP_BUILD = 334

12 changes: 12 additions & 0 deletions appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>Copilot for Xcode</title>
<item>
<title>0.31.1</title>
<pubDate>Wed, 13 Mar 2024 21:24:28 +0800</pubDate>
<sparkle:version>334</sparkle:version>
<sparkle:shortVersionString>0.31.1</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
<sparkle:releaseNotesLink>
https://github.com/intitni/CopilotForXcode/releases/tag/0.31.1
</sparkle:releaseNotesLink>
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.31.1/Copilot.for.Xcode.app.zip" length="40209085" type="application/octet-stream" sparkle:edSignature="RyuAk0iYffsUpWrvxHqtVPIp+JYf7u6Y5zRk72mxsqU7A6L037NqCBdFlk4SWNwl++zmD42hXpY6oNe3dENnDQ=="/>
</item>

<item>
<title>0.31.0</title>
<pubDate>Fri, 08 Mar 2024 14:48:32 +0800</pubDate>
Expand Down