This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ApplyModel | |
| { | |
| public string Name { get; set; } | |
| public string Role { get; set; } | |
| public string Credentials { get; set; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ItemGroup> | |
| <PackageReference Include="SmartComponents.AspNetCore" Version="0.1.0-preview10147" /> | |
| <PackageReference Include="SmartComponents.Inference.OpenAI" Version="0.1.0-preview10147" /> | |
| <PackageReference Include="SmartComponents.LocalEmbeddings" Version="0.1.0-preview10147" /> | |
| </ItemGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class IniFormatter : IFormatter | |
| { | |
| public class IniTypeBinder : SerializationBinder | |
| { | |
| public override Type BindToType(string assemblyName, string typeName) => Type.GetType(typeName.Split('=')[1]); | |
| public override void BindToName(Type serializedType, out string assemblyName, out string typeName) | |
| { | |
| assemblyName = $"{IniFormatter.AssemblyNameKey}={serializedType.Assembly.FullName}"; | |
| typeName = $"{IniFormatter.ClassNameKey}={serializedType.AssemblyQualifiedName}"; | |
| } |
NewerOlder