Skip to content

Commit 01af1cf

Browse files
authored
Merge pull request #203 from awaescher/feature/shoudly
Drop FluentAssertions for Shouldly
2 parents ed31cea + 1440a38 commit 01af1cf

24 files changed

+452
-461
lines changed

demo/Demos/ModelManagerConsole.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private async Task CreateModel()
8282
var fromModel = ReadInput("Enter the name of the model to create from:", $"[{HintTextColor}]See [/][{AccentTextColor}][link]https://ollama.ai/library[/][/][{HintTextColor}] for available models[/]");
8383

8484
var systemPrompt = ReadInput("Set a new system prompt word for the model:");
85-
85+
8686
await foreach (var status in Ollama.CreateModelAsync(new CreateModelRequest { From = fromModel, System = systemPrompt, Model = createName }))
8787
AnsiConsole.MarkupLineInterpolated($"{status?.Status ?? ""}");
8888
}

src/OllamaSharp/AsyncEnumerableExtensions/GenerateResponseStreamAppender.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
31
using System.Text;
42
using OllamaSharp.Models;
53

src/OllamaSharp/AsyncEnumerableExtensions/StringAppender.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Text;
2-
using System.Collections.Generic;
32

43
namespace OllamaSharp.AsyncEnumerableExtensions;
54

src/OllamaSharp/Models/Chat/ChatRequest.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Generic;
21
using System.ComponentModel;
32
using System.Text.Json.Serialization;
43

src/OllamaSharp/Models/Chat/ChatResponseStream.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Text.Json.Serialization;
32

43
namespace OllamaSharp.Models.Chat;

src/OllamaSharp/Models/Chat/ChatRole.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.ComponentModel;
32
using System.Text.Json.Serialization;
43
using OllamaSharp.Models.Chat.Converter;

src/OllamaSharp/Models/Chat/Converter/ChatRoleConverter.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Text.Json;
32
using System.Text.Json.Serialization;
43

src/OllamaSharp/Models/Chat/Message.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Generic;
21
using System.Diagnostics;
32
using System.Text.Json.Serialization;
43

src/OllamaSharp/Models/Exceptions/ModelDoesNotSupportToolsException.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
namespace OllamaSharp.Models.Exceptions;
42

53
/// <summary>

src/OllamaSharp/Models/Exceptions/OllamaException.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
namespace OllamaSharp.Models.Exceptions;
42

53
/// <summary>

src/OllamaSharp/Models/OllamaOption.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public class OllamaOption(string name)
115115
/// (Default: 128, -1 = infinite generation, -2 = fill context)
116116
/// </summary>
117117
public static OllamaOption NumPredict { get; } = new(Application.NumPredict);
118-
118+
119119
/// <summary>
120120
/// The number of tokens to generate in the output.
121121
/// (Default: -1, infinite generation)

src/OllamaSharp/Models/OllamaRequest.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System.Collections.Generic;
2-
31
namespace OllamaSharp.Models;
42

53
/// <summary>

0 commit comments

Comments
 (0)