新增一个openAI格式的转发接口,直接转发整个请求体

This commit is contained in:
2025-02-16 16:00:04 +08:00
parent 3934088e43
commit 01055762ca
3 changed files with 107 additions and 1 deletions
@@ -0,0 +1,19 @@
namespace LMS.Repository.Forward;
public class SimpleTransferModel
{
/// <summary>
/// GPT的完整地址
/// </summary>
public string url { get; set; }
/// <summary>
/// 对应的API站的使用的APIkey
/// </summary>
public string APIKey { get; set; }
/// <summary>
/// 实际的GPT请求的数据字符串,直接序列化再传递就行
/// </summary>
public string dataString { get; set; }
}