Skip to content

Commit 2cefb83

Browse files
committed
Update comments
1 parent ed5fb44 commit 2cefb83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/agents/AIShell.Ollama.Agent/Settings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Settings(ConfigData configData)
4848
/// <summary>
4949
/// Retrieve available models from the Ollama endpoint.
5050
/// </summary>
51-
/// <param name="host">Used for writing error to host when it's a local endpoint but the Ollama server is not started. The endpoint check will be skipped if a `null` is specified.</param>
51+
/// <param name="host">Used for writing error to host when it's a local endpoint but the Ollama server is not started. When the value is null, the endpoint check will be skipped.</param>
5252
/// <param name="cancellationToken">Used for cancel the operation.</param>
5353
/// <returns></returns>
5454
private async Task<bool> EnsureModelsInitialized(IHost host, CancellationToken cancellationToken = default)
@@ -60,7 +60,7 @@ private async Task<bool> EnsureModelsInitialized(IHost host, CancellationToken c
6060

6161
// The endpoint check is supposed to be interactive and can be skipped in some cases, such as when
6262
// the `PerformSelfcheck` method was already called right before entering this method.
63-
// So, we will simply skip the endpoint check when the passed-in host is null. If there's something
63+
// So, we will simply skip the endpoint check when the passed-in host is null. If there's anything
6464
// wrong with the endpoint, the subsequent calls to retrieve models will fail and throw anyway.
6565
if (host is not null)
6666
{

0 commit comments

Comments
 (0)