From 504549b8fc2f8ab6c301fb37d16b4a45c6f455ef Mon Sep 17 00:00:00 2001 From: nallave <116003489+nallave@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:42:41 +0530 Subject: [PATCH 1/2] Update Safety.swift --- Sources/GoogleAI/Safety.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/GoogleAI/Safety.swift b/Sources/GoogleAI/Safety.swift index d2adc4a..b045325 100644 --- a/Sources/GoogleAI/Safety.swift +++ b/Sources/GoogleAI/Safety.swift @@ -25,7 +25,7 @@ public struct SafetyRating: Equatable, Hashable { /// The model-generated probability that a given piece of content falls under the harm category /// described in ``category``. This does not - /// indiciate the severity of harm for a piece of content. See ``HarmProbability`` for a list of + /// indicate the severity of harm for a piece of content. See ``HarmProbability`` for a list of /// possible values. public let probability: HarmProbability From 72fdfa3969ac8fbf776f197789070ef8d8b147c7 Mon Sep 17 00:00:00 2001 From: nallave <116003489+nallave@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:46:39 +0530 Subject: [PATCH 2/2] Commit --- Sources/GoogleAI/ModelContent.swift | 2 +- Tests/GoogleAITests/PartsRepresentableTests.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/GoogleAI/ModelContent.swift b/Sources/GoogleAI/ModelContent.swift index 59bf1be..a947106 100644 --- a/Sources/GoogleAI/ModelContent.swift +++ b/Sources/GoogleAI/ModelContent.swift @@ -19,7 +19,7 @@ import Foundation /// may comprise multiple heterogeneous ``ModelContent/Part``s. @available(iOS 15.0, macOS 11.0, macCatalyst 15.0, *) public struct ModelContent: Equatable { - /// A discrete piece of data in a media format intepretable by an AI model. Within a single value + /// A discrete piece of data in a media format interpretable by an AI model. Within a single value /// of ``Part``, different data types may not mix. public enum Part: Equatable { /// Text value. diff --git a/Tests/GoogleAITests/PartsRepresentableTests.swift b/Tests/GoogleAITests/PartsRepresentableTests.swift index da2f35f..560c73c 100644 --- a/Tests/GoogleAITests/PartsRepresentableTests.swift +++ b/Tests/GoogleAITests/PartsRepresentableTests.swift @@ -70,7 +70,7 @@ final class PartsRepresentableTests: XCTestCase { return } } - XCTFail("Expected model content from invlaid image to error") + XCTFail("Expected model content from invalid image to error") } #if canImport(UIKit) @@ -93,7 +93,7 @@ final class PartsRepresentableTests: XCTestCase { return } } - XCTFail("Expected model content from invlaid image to error") + XCTFail("Expected model content from invalid image to error") } func testModelContentFromUIImageIsNotEmpty() throws { @@ -132,7 +132,7 @@ final class PartsRepresentableTests: XCTestCase { return } } - XCTFail("Expected model content from invlaid image to error") + XCTFail("Expected model content from invalid image to error") } #endif }