fix(ollama): await streamFn result in think-param tests to satisfy AsyncIterable type

This commit is contained in:
杨艺韬(yangyitao) 2026-03-15 06:14:13 +00:00
parent 684f41692d
commit aac1c913d3

View File

@ -553,7 +553,7 @@ describe("createOllamaStreamFn", () => {
],
async (fetchMock) => {
const streamFn = createOllamaStreamFn("http://ollama-host:11434");
const stream = streamFn(
const stream = await streamFn(
{
id: "deepseek-r1:32b",
api: "ollama",
@ -580,7 +580,7 @@ describe("createOllamaStreamFn", () => {
],
async (fetchMock) => {
const streamFn = createOllamaStreamFn("http://ollama-host:11434");
const stream = streamFn(
const stream = await streamFn(
{
id: "deepseek-r1:32b",
api: "ollama",