Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds doneReason to chat and generation responses #33

Merged
merged 1 commit into from
Jul 30, 2024
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
3 changes: 3 additions & 0 deletions Sources/OllamaKit/Responses/OKChatResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public struct OKChatResponse: OKCompletionResponse, Decodable {
/// A boolean indicating whether the chat session is complete.
public let done: Bool

/// An optional string indicating the cause for the completion of the chat session.
public let doneReason: String?

/// An optional integer representing the total duration of processing the request.
public let totalDuration: Int?

Expand Down
3 changes: 3 additions & 0 deletions Sources/OllamaKit/Responses/OKGenerateResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public struct OKGenerateResponse: OKCompletionResponse, Decodable {
/// A boolean indicating whether the generation process is complete.
public let done: Bool

/// An optional string indicating the cause for the completion of the generation.
public let doneReason: String?

/// An optional integer representing the total duration of processing the request.
public let totalDuration: Int?

Expand Down
Loading