Philipp Bauer
67e6d633fd
Rebuild ChatSession class
- Saves with serialized ChatHistory of session
- Only allows use of ChatHistory.Message (instead of raw text)
for easy post-processing with IHistoryTransform implementation
- Provides History Management methods
- Allows user to regenerate last assistant message
2 years ago
Philipp Bauer
cb480f04af
Prevent compilation errors due to duplicated assembly info
2 years ago
Philipp Bauer
f1eac82ecc
Update target frameworks with .NET 8
2 years ago
Martin Evans
33358124db
Initial pass at a new sampling pipeline
1 year ago
xbotter
a2b26faa7a
🔧 Refactor chat completion implementation
- Refactored the chat completion implementation in `LLamaSharpChatCompletion.cs` to use `StatelessExecutor` instead of `InteractiveExecutor`.
- Updated the chat history prompt in `LLamaSharpChatCompletion.cs` to include a conversation between the assistant and the user.
- Modified the `HistoryTransform` class in `HistoryTransform.cs` to append the assistant role to the chat history prompt.
- Updated the constructor of `LLamaSharpChatCompletion` to accept optional parameters for `historyTransform` and `outputTransform`.
- Modified the `GetChatCompletionsAsync` and `GetChatCompletions` methods in `LLamaSharpChatCompletion.cs` to use the new `StatelessExecutor` and `outputTransform`.
- Updated the `ExtensionMethods.cs` file to include the assistant and system roles in the list of anti-prompts.
1 year ago
Rinne
ac3cc7c039
Merge pull request #339 from markvantilburg/patch-1
Update README.md
1 year ago
mark van tilburg
93eb885253
Update README.md
Update example to the latest version
1 year ago
Rinne
884f5ade13
Merge pull request #334 from AsakusaRinne/master
ci: fix error in auto-release.
2 years ago
Martin Evans
20f03a5cee
Merge pull request #335 from SciSharp/martindevans-patch-1
Update README.md
2 years ago
Martin Evans
c067570803
Update README.md
2 years ago
Rinne
35624d688c
ci: fix error in auto-release.
2 years ago
Rinne
1f97ad874b
Merge pull request #333 from AsakusaRinne/master
feat: allow customized search path for native library loading.
2 years ago
Rinne
ffc347a3f3
resolve comments.
2 years ago
Rinne
b05c3154f4
feat: allow customized search path for native library loading.
2 years ago
Martin Evans
6dfda5e8be
Merge pull request #331 from SciSharp/martindevans-patch-1
Update README.md
2 years ago
Martin Evans
adb3dcecc6
Update README.md
Minor spelling fixes
2 years ago
Martin Evans
597b8c7653
Merge pull request #329 from SciSharp/dependabot/nuget/xunit.runner.visualstudio-2.5.4
build(deps): bump xunit.runner.visualstudio from 2.5.3 to 2.5.4
2 years ago
Martin Evans
15586d8cc8
Merge pull request #330 from SciSharp/dependabot/nuget/Spectre.Console-0.48.0
build(deps): bump Spectre.Console from 0.47.0 to 0.48.0
2 years ago
dependabot[bot]
36adc4af32
build(deps): bump Spectre.Console from 0.47.0 to 0.48.0
Bumps [Spectre.Console](https://github.com/spectreconsole/spectre.console ) from 0.47.0 to 0.48.0.
- [Release notes](https://github.com/spectreconsole/spectre.console/releases )
- [Commits](https://github.com/spectreconsole/spectre.console/compare/0.47.0...0.48.0 )
---
updated-dependencies:
- dependency-name: Spectre.Console
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
6d86219d71
build(deps): bump xunit.runner.visualstudio from 2.5.3 to 2.5.4
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit ) from 2.5.3 to 2.5.4.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases )
- [Commits](https://github.com/xunit/visualstudio.xunit/compare/2.5.3...2.5.4 )
---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Rinne
59b74aa8b4
Merge pull request #321 from SciSharp/dependabot/nuget/Microsoft.VisualStudio.Validation-17.8.8
build(deps): bump Microsoft.VisualStudio.Validation from 17.6.11 to 17.8.8
2 years ago
Rinne
687fff5608
Merge pull request #326 from AsakusaRinne/fix_chinese
fix: Chinese encoding error with gb2312.
2 years ago
Rinne
605d1ddb3f
revert a change.
2 years ago
Rinne
934358a7b3
Merge branch 'master' of github.com:AsakusaRinne/LLamaSharp into fix_chinese
2 years ago
Rinne
217c67b757
fix: chinese encoding error.
2 years ago
Philipp Bauer
debc8285f8
Merge branch 'SciSharp:master' into master
2 years ago
Rinne
cf4edeac55
Merge pull request #315 from futzy314/fix-ai-request-settings
Added a converter similar to the Open AI one
2 years ago
Rinne
14b7cce7ea
Merge pull request #325 from xbotter/deps/km-0.12
🔧 Update KernelMemory Package
2 years ago
xbotter
d1e2a4750b
🔧 Update KernelMemory configuration
- Update LLamaSharpTextEmbeddingGeneration and LLamaSharpTextGeneration
- Add Microsoft.KernelMemory.Core package reference
- Update Microsoft.KernelMemory.Abstractions package reference
2 years ago
Martin Evans
597188c236
Merge pull request #316 from martindevans/update_binaries_nov
November Binary Update
2 years ago
Ian Foutz
b2bf59d8d5
Unit tests added
2 years ago
Martin Evans
cf4d222c0e
Merge pull request #317 from SciSharp/dependabot/nuget/Microsoft.Extensions.Logging.Abstractions-8.0.0
build(deps): bump Microsoft.Extensions.Logging.Abstractions from 7.0.1 to 8.0.0
2 years ago
dependabot[bot]
40729c898f
build(deps): bump Microsoft.Extensions.Logging.Abstractions
Bumps [Microsoft.Extensions.Logging.Abstractions](https://github.com/dotnet/runtime ) from 7.0.1 to 8.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v7.0.1...v8.0.0 )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Logging.Abstractions
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Martin Evans
d9a1ea5d72
Merge pull request #319 from SciSharp/dependabot/nuget/Microsoft.Extensions.Logging.Console-8.0.0
build(deps): bump Microsoft.Extensions.Logging.Console from 7.0.0 to 8.0.0
2 years ago
Martin Evans
9f0a978e29
Merge pull request #318 from SciSharp/dependabot/nuget/System.Text.Json-8.0.0
build(deps): bump System.Text.Json from 7.0.3 to 8.0.0
2 years ago
Martin Evans
33b1e421b1
Merge pull request #320 from SciSharp/dependabot/nuget/xunit-2.6.2
build(deps): bump xunit from 2.6.1 to 2.6.2
2 years ago
dependabot[bot]
52be1eec50
build(deps): bump Microsoft.VisualStudio.Validation
Bumps [Microsoft.VisualStudio.Validation](https://github.com/microsoft/vs-validation ) from 17.6.11 to 17.8.8.
- [Release notes](https://github.com/microsoft/vs-validation/releases )
- [Commits](https://github.com/microsoft/vs-validation/commits )
---
updated-dependencies:
- dependency-name: Microsoft.VisualStudio.Validation
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
41292b4b32
build(deps): bump xunit from 2.6.1 to 2.6.2
Bumps [xunit](https://github.com/xunit/xunit ) from 2.6.1 to 2.6.2.
- [Commits](https://github.com/xunit/xunit/compare/2.6.1...2.6.2 )
---
updated-dependencies:
- dependency-name: xunit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
20a0dc7ac6
build(deps): bump Microsoft.Extensions.Logging.Console
Bumps [Microsoft.Extensions.Logging.Console](https://github.com/dotnet/runtime ) from 7.0.0 to 8.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v7.0.0...v8.0.0 )
---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Logging.Console
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
93790582e8
build(deps): bump System.Text.Json from 7.0.3 to 8.0.0
Bumps [System.Text.Json](https://github.com/dotnet/runtime ) from 7.0.3 to 8.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases )
- [Commits](https://github.com/dotnet/runtime/compare/v7.0.3...v8.0.0 )
---
updated-dependencies:
- dependency-name: System.Text.Json
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Rinne
c94aeabc4b
Merge pull request #307 from xbotter/sm-default-config
Add DefaultInferenceParams to Kernel Memory
2 years ago
Martin Evans
7486e6388a
Updated nuspec files
2 years ago
Martin Evans
a3614f6747
Added `native/` back into path prefix
2 years ago
Martin Evans
77003d763e
Added new symbols from llama.h
2 years ago
Martin Evans
37466956c7
Added new binaries.
- Built by this run: https://github.com/SciSharp/LLamaSharp/actions/runs/6921572568
- commit: `e937066420b79a757bf80e9836eb12b88420a218`
- Rearranged paths
2 years ago
Martin Evans
e6ae9edbd2
Merge pull request #314 from martindevans/fix_build_pipeline
Build Pipeline Fixes
2 years ago
Ian Foutz
060d7c273d
Added a converter similar to the Open AI one
2 years ago
Martin Evans
241b72e6f5
- Fixed uploading metal for x64
- Removed leftover metal file upload
2 years ago
Martin Evans
ef6a8890e2
- Fixed MacOS files missing from build pipeline
- Removed inputs (they never worked anyway)
- Put all deps into one final zip file
2 years ago
Martin Evans
d11702c4ea
Merge pull request #310 from martindevans/better_tensor_splits_specification
Better TensorSplitsCollection Initialisation
2 years ago