'commit'
This commit is contained in:
13
dsLightRag/Test/G1_Gemini.py
Normal file
13
dsLightRag/Test/G1_Gemini.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from Util.GoApiUtil import ModelInteractor
|
||||
|
||||
# 示例使用
|
||||
if __name__ == "__main__":
|
||||
# 创建模型交互器实例
|
||||
interactor = ModelInteractor()
|
||||
|
||||
# 使用不同的模型和提示词
|
||||
model_name = "gemini-2.5-pro"
|
||||
prompt_text = "请详细介绍一下你自己,分成几个段落来说明"
|
||||
|
||||
# 发送流式请求
|
||||
interactor.stream_request(model_name, prompt_text)
|
Reference in New Issue
Block a user