From 1042e753f818f8a7e9bbcc87505e41bd270852c9 Mon Sep 17 00:00:00 2001
From: Chester Liu <4710575+skyline75489@users.noreply.github.com>
Date: Tue, 17 Dec 2024 15:32:59 +0800
Subject: [PATCH] Update
---
src/csharp/Adapters.cs | 2 +-
src/csharp/Config.cs | 2 +-
src/csharp/Generator.cs | 3 ---
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/csharp/Adapters.cs b/src/csharp/Adapters.cs
index dfef322e4..c8fc39c1b 100644
--- a/src/csharp/Adapters.cs
+++ b/src/csharp/Adapters.cs
@@ -53,7 +53,7 @@ public void UnloadAdapter(string adapterName)
internal IntPtr Handle { get { return handle; } }
///
- /// Implement SafeHandle override
+ /// Implement SafeHandle override.
///
public override bool IsInvalid => handle == IntPtr.Zero;
diff --git a/src/csharp/Config.cs b/src/csharp/Config.cs
index 6ad43e252..c263c9ea0 100644
--- a/src/csharp/Config.cs
+++ b/src/csharp/Config.cs
@@ -49,7 +49,7 @@ public void ClearProviders()
///
public void AppendProvider(string providerName)
{
- Result.VerifySuccess(NativeMethods.OgaConfigAppendProvider(_configHandle, StringUtils.ToUtf8(provider)));
+ Result.VerifySuccess(NativeMethods.OgaConfigAppendProvider(_configHandle, StringUtils.ToUtf8(providerName)));
}
///
diff --git a/src/csharp/Generator.cs b/src/csharp/Generator.cs
index 53ffd78a0..97204c85b 100644
--- a/src/csharp/Generator.cs
+++ b/src/csharp/Generator.cs
@@ -31,9 +31,6 @@ public Generator(Model model, GeneratorParams generatorParams)
///
/// True if the generation process is done, false otherwise.
///
- ///
- /// Thrown when the call to the GenAI native API fails.
- ///
public bool IsDone()
{
return NativeMethods.OgaGenerator_IsDone(_generatorHandle) != 0;