mirror of
https://github.com/ollama/ollama.git
synced 2025-11-10 21:47:42 +01:00
routes: fix built-in renderers for api/generate
Made it so when api/generate builds up a message array and generates the prompt it now goes through the same function as `api/chat` for consistency. This is where we hook the optional built-in renderers to bypass templates, which was missing for `api/generate` before this change. Closes: #12578
This commit is contained in:
@@ -146,7 +146,7 @@ func TestGenerateDebugRenderOnly(t *testing.T) {
|
||||
DebugRenderOnly: true,
|
||||
},
|
||||
expectDebug: true,
|
||||
expectTemplate: "[img-0]\n\nDescribe this image",
|
||||
expectTemplate: "[img-0]Describe this image",
|
||||
expectNumImages: 1,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user