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