Skip to content

Commit

Permalink
Update Sources/SpeziLLMLocal/LLMLocalSession+Generate.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Schmiedmayer <PSchmiedmayer@users.noreply.github.com>
  • Loading branch information
vishnuravi and PSchmiedmayer authored Jan 30, 2025
1 parent eebcc51 commit ad15bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SpeziLLMLocal/LLMLocalSession+Generate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension LLMLocalSession {
// swiftlint:disable:next identifier_name function_body_length cyclomatic_complexity
internal func _generate(continuation: AsyncThrowingStream<String, any Error>.Continuation) async {
#if targetEnvironment(simulator)
return await _mockGenerate(continuation: continuation) // swiftlint:disable:this return_value_from_void_function
await _mockGenerate(continuation: continuation)

Check warning on line 23 in Sources/SpeziLLMLocal/LLMLocalSession+Generate.swift

View check run for this annotation

Codecov / codecov/patch

Sources/SpeziLLMLocal/LLMLocalSession+Generate.swift#L23

Added line #L23 was not covered by tests
#endif

guard let modelContainer = await self.modelContainer else {
Expand Down

0 comments on commit ad15bdb

Please sign in to comment.