diff --git a/LMS.Repository/Forward/SimpleTransferModel.cs b/LMS.Repository/Forward/SimpleTransferModel.cs
new file mode 100644
index 0000000..4aaa430
--- /dev/null
+++ b/LMS.Repository/Forward/SimpleTransferModel.cs
@@ -0,0 +1,19 @@
+namespace LMS.Repository.Forward;
+
+public class SimpleTransferModel
+{
+ ///
+ /// GPT的完整地址
+ ///
+ public string url { get; set; }
+
+ ///
+ /// 对应的API站的使用的APIkey
+ ///
+ public string APIKey { get; set; }
+
+ ///
+ /// 实际的GPT请求的数据字符串,直接序列化再传递就行
+ ///
+ public string dataString { get; set; }
+}
diff --git a/LMS.service/Controllers/ForwardController.cs b/LMS.service/Controllers/ForwardController.cs
index 4f97bbe..805d646 100644
--- a/LMS.service/Controllers/ForwardController.cs
+++ b/LMS.service/Controllers/ForwardController.cs
@@ -11,11 +11,13 @@ namespace LMS.service.Controllers;
[Route("lms/[controller]/[action]")]
[ApiController]
-// ceshi
public class ForwardController(ForwardWordService forwardWordService) : ControllerBase
{
private readonly ForwardWordService _forwardWordService = forwardWordService;
+
+ #region 非流转发接口,需要系统数据
+
///
/// 转发OpenAi格式的请求
///
@@ -31,6 +33,10 @@ public class ForwardController(ForwardWordService forwardWordService) : Controll
return await _forwardWordService.ForwardWord(request);
}
+ #endregion
+
+
+ #region 流式转发接口,需要系统数据
///
/// 流式转发
///
@@ -72,4 +78,26 @@ public class ForwardController(ForwardWordService forwardWordService) : Controll
return propertyName.ToLower();
}
}
+
+ #endregion
+
+
+ #region 普通转发接口,直接转发,不要系统数据
+
+ ///
+ /// 转发所有的OpenAI格式的AI请求
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task>> SimpleTransfer([FromBody] SimpleTransferModel request)
+ {
+ if (!ModelState.IsValid)
+ {
+ return APIResponseModel