Commit Graph

820 Commits

Author SHA1 Message Date
Rinne 3019da9d22
Merge pull request #341 from xbotter/sk/chat-stateless
🔧 Refactor Semantic Kernel chat completion implementation
2023-12-09 22:22:40 +08:00
xbotter 22a775e1b0
Merge branch 'SciSharp:master' into sk/chat-stateless 2023-12-06 19:33:39 +08:00
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.
2023-12-01 21:39:31 +08:00
Rinne ac3cc7c039
Merge pull request #339 from markvantilburg/patch-1
Update README.md
2023-12-01 17:47:22 +08:00
mark van tilburg 93eb885253
Update README.md
Update example to the latest version
2023-12-01 08:54:49 +01:00
Rinne 884f5ade13
Merge pull request #334 from AsakusaRinne/master
ci: fix error in auto-release.
2023-11-29 02:14:46 +08:00
Martin Evans 20f03a5cee
Merge pull request #335 from SciSharp/martindevans-patch-1
Update README.md
2023-11-28 18:14:02 +00:00
Martin Evans c067570803
Update README.md 2023-11-28 18:13:46 +00:00
Rinne 35624d688c
ci: fix error in auto-release. 2023-11-29 01:06:55 +08:00
Rinne 1f97ad874b
Merge pull request #333 from AsakusaRinne/master
feat: allow customized search path for native library loading.
2023-11-29 00:38:32 +08:00
Rinne ffc347a3f3
resolve comments. 2023-11-29 00:16:00 +08:00
Rinne b05c3154f4
feat: allow customized search path for native library loading. 2023-11-28 20:58:32 +08:00
Martin Evans 6dfda5e8be
Merge pull request #331 from SciSharp/martindevans-patch-1
Update README.md
2023-11-27 23:05:40 +00:00
Martin Evans adb3dcecc6
Update README.md
Minor spelling fixes
2023-11-27 23:05:28 +00:00
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
2023-11-27 14:49:51 +00:00
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
2023-11-27 14:43:29 +00:00
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>
2023-11-27 06:17:53 +00:00
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>
2023-11-27 06:17:47 +00:00
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
2023-11-25 02:48:58 +08:00
Rinne 687fff5608
Merge pull request #326 from AsakusaRinne/fix_chinese
fix: Chinese encoding error with gb2312.
2023-11-25 02:25:29 +08:00
Rinne 605d1ddb3f
revert a change. 2023-11-25 02:06:25 +08:00
Rinne 934358a7b3
Merge branch 'master' of github.com:AsakusaRinne/LLamaSharp into fix_chinese 2023-11-25 01:53:27 +08:00
Rinne 217c67b757
fix: chinese encoding error. 2023-11-25 01:44:29 +08:00
Rinne cf4edeac55
Merge pull request #315 from futzy314/fix-ai-request-settings
Added a converter similar to the Open AI one
2023-11-24 22:12:55 +08:00
Rinne 14b7cce7ea
Merge pull request #325 from xbotter/deps/km-0.12
🔧 Update KernelMemory Package
2023-11-24 22:12:07 +08:00
xbotter d1e2a4750b
🔧 Update KernelMemory configuration
- Update LLamaSharpTextEmbeddingGeneration and LLamaSharpTextGeneration
- Add Microsoft.KernelMemory.Core package reference
- Update Microsoft.KernelMemory.Abstractions package reference
2023-11-24 21:42:52 +08:00
Martin Evans 597188c236
Merge pull request #316 from martindevans/update_binaries_nov
November Binary Update
2023-11-20 19:45:07 +00:00
Ian Foutz b2bf59d8d5 Unit tests added 2023-11-20 09:55:20 -06:00
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
2023-11-20 15:21:22 +00:00
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>
2023-11-20 15:11:42 +00:00
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
2023-11-20 15:10:08 +00:00
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
2023-11-20 15:09:29 +00:00
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
2023-11-20 13:56:43 +00:00
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>
2023-11-20 06:49:37 +00:00
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>
2023-11-20 06:49:35 +00:00
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>
2023-11-20 06:49:32 +00:00
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>
2023-11-20 06:49:28 +00:00
Rinne c94aeabc4b
Merge pull request #307 from xbotter/sm-default-config
Add DefaultInferenceParams to Kernel Memory
2023-11-20 10:15:28 +08:00
Martin Evans 7486e6388a Updated nuspec files 2023-11-19 18:52:56 +00:00
Martin Evans a3614f6747 Added `native/` back into path prefix 2023-11-19 18:47:42 +00:00
Martin Evans 77003d763e Added new symbols from llama.h 2023-11-19 17:11:01 +00:00
Martin Evans 37466956c7 Added new binaries.
- Built by this run: https://github.com/SciSharp/LLamaSharp/actions/runs/6921572568
 - commit: `e937066420b79a757bf80e9836eb12b88420a218`
 - Rearranged paths
2023-11-19 16:54:12 +00:00
Martin Evans e6ae9edbd2
Merge pull request #314 from martindevans/fix_build_pipeline
Build Pipeline Fixes
2023-11-19 15:28:34 +00:00
Ian Foutz 060d7c273d Added a converter similar to the Open AI one 2023-11-18 21:42:34 -06:00
Martin Evans 241b72e6f5 - Fixed uploading metal for x64
- Removed leftover metal file upload
2023-11-19 02:41:33 +00:00
Martin Evans ef6a8890e2 - Fixed MacOS files missing from build pipeline
- Removed inputs (they never worked anyway)
 - Put all deps into one final zip file
2023-11-19 02:19:19 +00:00
Martin Evans d11702c4ea
Merge pull request #310 from martindevans/better_tensor_splits_specification
Better TensorSplitsCollection Initialisation
2023-11-18 17:30:09 +00:00
xbotter 286904920b
update DefaultInferenceParams in WithLLamaSharpDefaults 2023-11-18 21:40:04 +08:00
Martin Evans 8540c8d220
Merge pull request #312 from martindevans/removed_obsolete_modelparams_constructor
Removed Obsolete ModelParams Constructor
2023-11-18 12:25:01 +00:00
Martin Evans c6d507040c
Merge pull request #311 from martindevans/Improved_Test_Coverage
Improved test coverage.
2023-11-18 12:23:47 +00:00