Skip to content

Commit c5a360a

Browse files
authored
fixes (#64)
1 parent 5f348f2 commit c5a360a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ The SDK provides a streamlined `Conversation` class that handles all aspects of
6262

6363
```swift
6464
import ElevenLabs
65+
import LiveKit
6566

6667
@MainActor
6768
class ConversationManager: ObservableObject {
@@ -391,6 +392,7 @@ conversation.$state
391392
```swift
392393
import SwiftUI
393394
import ElevenLabs
395+
import LiveKit
394396
import Combine
395397

396398
struct ConversationView: View {

Sources/ElevenLabs/Auth/TokenService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public struct TokenService: Sendable {
8888
public init(
8989
configuration: Configuration = .default,
9090
urlSession: URLSession = .shared,
91-
debugApiKey: String? = nil,
91+
debugApiKey: String? = nil
9292
) {
9393
self.configuration = configuration
9494
self.urlSession = urlSession
@@ -97,7 +97,7 @@ public struct TokenService: Sendable {
9797
#else
9898
public init(
9999
configuration: Configuration = .default,
100-
urlSession: URLSession = .shared,
100+
urlSession: URLSession = .shared
101101
) {
102102
self.configuration = configuration
103103
self.urlSession = urlSession

Sources/ElevenLabs/Conversation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public enum ConversationState: Equatable, Sendable {
465465
case ended(reason: EndReason)
466466
case error(ConversationError)
467467

468-
var isActive: Bool {
468+
public var isActive: Bool {
469469
if case .active = self { return true }
470470
return false
471471
}

0 commit comments

Comments
 (0)