This commit is contained in:
2025-08-15 16:19:42 +08:00
parent d7f4b32efa
commit c7d7ece6a4

View 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)