...
This commit is contained in:
29
Hushian.Application/Models/aiRequestModel.cs
Normal file
29
Hushian.Application/Models/aiRequestModel.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Hushian.Application.Models
|
||||
{
|
||||
public class aiRequestModel
|
||||
{
|
||||
public aiRequestModel(string question, string[] prompts)
|
||||
{
|
||||
this.question = question;
|
||||
this.prompts = prompts;
|
||||
}
|
||||
|
||||
public string question { get; set; }
|
||||
public string[] prompts { get; set; }
|
||||
public override string ToString()
|
||||
{
|
||||
string str = "";
|
||||
foreach (var item in prompts)
|
||||
{
|
||||
str += '\n'+item;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
}
|
14
Hushian.Application/Models/aia/aiSetting.cs
Normal file
14
Hushian.Application/Models/aia/aiSetting.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Hushian.Application.Models.aia
|
||||
{
|
||||
public class aiSetting
|
||||
{
|
||||
public string url { get; set; }
|
||||
public string apitoken { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user