11 changed files with 124 additions and 24 deletions
@ -1,16 +1,16 @@ |
|||
/// AI回复服务接口 |
|||
abstract class AiService { |
|||
|
|||
|
|||
/// 非流式输出方法 |
|||
Future<String> sendMessage({ |
|||
required List<Map<String, String>> messages, |
|||
required String systemPrompt, |
|||
String? systemPrompt, |
|||
String? userProperties, |
|||
}); |
|||
|
|||
/// 流式输出方法 |
|||
Stream sendMessageStream({ |
|||
required List<Map<String, String>> messages, |
|||
required String systemPrompt, |
|||
String? systemPrompt, |
|||
String? userProperties, |
|||
}); |
|||
} |
|||
|
|||
Loading…
Reference in new issue