Slide 7
Slide 7 text
原因:thinking の出力を、content だけ見ていた
gemma4:e4b
は デフォルトで thinkingモード
出力の大半が message.thinking
へ
message.content
は 空のまま → 「沈黙」に見えた
Ollama /api/chat
に渡す body に think: false
を1つ
const payload = {
model: "gemma4:e4b",
messages,
stream: true,
think: false, // ← options の中ではなく body 直下!
options: { temperature: 0.3, num_ctx: 8192 },
};
// fetch(`${OLLAMA}/api/chat`, { body: JSON.stringify(payload) })
7