You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using Xunit;
- using LLama;
- using LLama.Abstractions;
- using Microsoft.SemanticKernel;
- using Microsoft.SemanticKernel.Services;
- using System;
- using System.IO;
- using System.Runtime.CompilerServices;
- using System.Text;
- using static LLama.LLamaTransforms;
- using System.Threading.Tasks;
- using System.Collections.Generic;
- using System.Threading;
- using LLamaSharp.SemanticKernel.ChatCompletion;
-
- namespace LLamaSharp.SemanticKernel.Tests
- {
- public class ExtensionMethodsTests
- {
- [Fact]
- public void ToLLamaSharpChatHistory_StateUnderTest_ExpectedBehavior()
- {
- // Arrange
- var chatHistory = new Microsoft.SemanticKernel.ChatCompletion.ChatHistory();
- bool ignoreCase = true;
-
- // Act
- var result = ExtensionMethods.ToLLamaSharpChatHistory(
- chatHistory,
- ignoreCase);
-
- // Assert
- Assert.NotNull(result);
- }
-
- [Fact]
- public void ToLLamaSharpInferenceParams_StateUnderTest_ExpectedBehavior()
- {
- // Arrange
- var requestSettings = new ChatRequestSettings();
-
- // Act
- var result = ExtensionMethods.ToLLamaSharpInferenceParams(
- requestSettings);
-
- // Assert
- Assert.NotNull(result);
- }
- }
- }
|