provider

command
v1.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

ezloop provider 示例:三种输入形态直连模型并打印响应 JSON(非流式 Invoke)。

text   纯文本输入
image  纯图片输入(程序生成的 64×64 PNG:红底中央蓝圆,无外部依赖)
mixed  文本 + 图片输入

每个请求都带一个简单工具(get_time),便于观察端点行为: 输出走 content 还是 reasoning_content、是否触发 tool_calls。

运行:cp .env.example .env 填 OPENAI_API_KEY(默认 SiliconFlow 端点), go run ./examples/provider [text|image|mixed](缺省跑全部)。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL