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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The SDK provides a streamlined `Conversation` class that handles all aspects of

```swift
import ElevenLabs
import LiveKit

@MainActor
class ConversationManager: ObservableObject {
Expand Down Expand Up @@ -391,6 +392,7 @@ conversation.$state
```swift
import SwiftUI
import ElevenLabs
import LiveKit
import Combine

struct ConversationView: View {
Expand Down
4 changes: 2 additions & 2 deletions Sources/ElevenLabs/Auth/TokenService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public struct TokenService: Sendable {
public init(
configuration: Configuration = .default,
urlSession: URLSession = .shared,
debugApiKey: String? = nil,
debugApiKey: String? = nil
) {
self.configuration = configuration
self.urlSession = urlSession
Expand All @@ -97,7 +97,7 @@ public struct TokenService: Sendable {
#else
public init(
configuration: Configuration = .default,
urlSession: URLSession = .shared,
urlSession: URLSession = .shared
) {
self.configuration = configuration
self.urlSession = urlSession
Expand Down
2 changes: 1 addition & 1 deletion Sources/ElevenLabs/Conversation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public enum ConversationState: Equatable, Sendable {
case ended(reason: EndReason)
case error(ConversationError)

var isActive: Bool {
public var isActive: Bool {
if case .active = self { return true }
return false
}
Expand Down
Loading