Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions OllamaSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7B88E967-DA41-4A3F-80B9-AAAE0A7B471D}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Directory.Build.props = Directory.Build.props
EndProjectSection
EndProject
Global
Expand Down
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "8.0.403",
"allowPrerelease": true,
"rollForward": "latestFeature"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using OllamaSharp.Models.Chat;

namespace OllamaSharp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Text;
using OllamaSharp.Models;

Expand Down
3 changes: 0 additions & 3 deletions src/AsyncEnumerableExtensions/IAsyncEnumerableExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using OllamaSharp.Models;
using OllamaSharp.Models.Chat;

Expand Down
4 changes: 0 additions & 4 deletions src/Chat.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using OllamaSharp.Models;
using OllamaSharp.Models.Chat;

Expand Down
2 changes: 0 additions & 2 deletions src/HttpRequestMessageExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;
using System.Net.Http;
using OllamaSharp.Models;

namespace OllamaSharp;
Expand Down
4 changes: 0 additions & 4 deletions src/IOllamaApiClient.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using OllamaSharp.Models;
using OllamaSharp.Models.Chat;

Expand Down
1 change: 0 additions & 1 deletion src/Models/Chat/ChatRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Text.Json.Serialization;

Expand Down
1 change: 0 additions & 1 deletion src/Models/Chat/ChatRole.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.ComponentModel;
using System.Text.Json.Serialization;
using OllamaSharp.Models.Chat.Converter;
Expand Down
1 change: 0 additions & 1 deletion src/Models/Chat/Converter/ChatRoleConverter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Text.Json;
using System.Text.Json.Serialization;

Expand Down
2 changes: 0 additions & 2 deletions src/Models/Chat/Converter/StringDictionaryConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using System.Text.Json;

Expand Down
1 change: 0 additions & 1 deletion src/Models/Chat/Message.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Text.Json.Serialization;
using OllamaSharp.Models.Chat.Converter;
Expand Down
1 change: 0 additions & 1 deletion src/Models/Chat/MessageBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Text;

namespace OllamaSharp.Models.Chat;
Expand Down
1 change: 0 additions & 1 deletion src/Models/Embed.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace OllamaSharp.Models;
Expand Down
2 changes: 0 additions & 2 deletions src/Models/Exceptions/ModelDoesNotSupportToolsException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace OllamaSharp.Models.Exceptions;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Models/Exceptions/OllamaException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace OllamaSharp.Models.Exceptions;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/Models/ListModels.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics;
using System.Text.Json.Serialization;

Expand Down
1 change: 0 additions & 1 deletion src/Models/ListRunningModels.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics;
using System.Text.Json.Serialization;

Expand Down
2 changes: 0 additions & 2 deletions src/Models/OllamaRequest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;

namespace OllamaSharp.Models;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/Models/RequestOptions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Buffers.Text;
using System.Text.Json.Serialization;

namespace OllamaSharp.Models;
Expand Down
1 change: 0 additions & 1 deletion src/Models/ShowModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace OllamaSharp.Models;
Expand Down
6 changes: 0 additions & 6 deletions src/OllamaApiClient.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Threading;
using System.Threading.Tasks;
using OllamaSharp.Models;
using OllamaSharp.Models.Chat;
using OllamaSharp.Models.Exceptions;
Expand Down
4 changes: 0 additions & 4 deletions src/OllamaApiClientExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using OllamaSharp.Models;

namespace OllamaSharp;
Expand Down
2 changes: 0 additions & 2 deletions src/OllamaSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Title>OllamaSharp</Title>
Expand Down
3 changes: 0 additions & 3 deletions test/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
Expand Down
Loading