Skip to content

Commit

Permalink
Merge pull request #157 from Joy-less/expose-dispose
Browse files Browse the repository at this point in the history
Publicly expose OllamaApiClient.Dispose
  • Loading branch information
awaescher authored Jan 3, 2025
2 parents f38890d + accd3d7 commit a5d641b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OllamaApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ async Task<GeneratedEmbeddings<Embedding<float>>> IEmbeddingGenerator<string, Em
/// Releases the resources used by the <see cref="OllamaApiClient"/> instance.
/// Disposes the internal HTTP client if it was created internally.
/// </summary>
void IDisposable.Dispose()
public void Dispose()
{
if (_disposeHttpClient)
_client?.Dispose();
Expand Down

0 comments on commit a5d641b

Please sign in to comment.