添加项目文件。
This commit is contained in:
30
Models/ChatMessage.cs
Normal file
30
Models/ChatMessage.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace YwxApp.AiChat.Models
|
||||
{
|
||||
public class ChatMessage : INotifyPropertyChanged
|
||||
{
|
||||
public enum MessageRole { User, Assistant }
|
||||
|
||||
private MessageRole _role;
|
||||
public MessageRole Role
|
||||
{
|
||||
get => _role;
|
||||
set { _role = value; OnPropertyChanged(); }
|
||||
}
|
||||
|
||||
private string _content;
|
||||
public string Content
|
||||
{
|
||||
get => _content;
|
||||
set { _content = value; OnPropertyChanged(); }
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler? PropertyChanged;
|
||||
protected virtual void OnPropertyChanged([CallerMemberName] string? name = null)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
|
||||
}
|
||||
}
|
||||
}
|
||||
40
Models/ModelDescription.cs
Normal file
40
Models/ModelDescription.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YwxApp.AiChat.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// select switch display model description.
|
||||
/// </summary>
|
||||
public class ModelDescription
|
||||
{
|
||||
public const string CodeGemma = "codegemma";
|
||||
public const string Llama32 = "llama3.2";
|
||||
//model list(description)
|
||||
public const string Codellama34b = "codellama:34b";
|
||||
public const string Llava13b = "llava:13b";
|
||||
public const string CommandRLatest = "command-r:latest";
|
||||
public const string Wizardlm2Latest = "wizardlm2:latest";
|
||||
public const string Qwen25CoderLatest = "qwen2.5-coder:latest";
|
||||
public const string Qwen25_14b = "qwen2.5:14b";
|
||||
public const string SamanthaMistralLatest = "samantha-mistral:latest";
|
||||
public const string MistralSmallLatest = "mistral-small:latest";
|
||||
public const string Gemma29b = "gemma2:9b";
|
||||
public const string NemotronMiniLatest = "nemotron-mini:latest";
|
||||
public const string Phi35Latest = "phi3.5:latest";
|
||||
public const string Llama32VisionLatest = "llama3.2-vision:latest";
|
||||
public const string Llama31_8b = "llama3.1:8b";
|
||||
public const string Gemma22b = "gemma2:2b";
|
||||
public const string Qwen27b = "qwen2:7b";
|
||||
public const string Qwen20_5b = "qwen2:0.5b";
|
||||
public const string Llama31_70b = "llama3.1:70b";
|
||||
public const string Llama31Latest = "llama3.1:latest";
|
||||
public const string Llama32Latest = "llama3.2:latest";
|
||||
public const string Llama32_3b = "llama3.2:3b";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user