mirror of
https://github.com/ollama/ollama.git
synced 2025-07-24 10:56:17 +02:00
fix tests
This commit is contained in:
@@ -455,7 +455,8 @@ func Test_ChatPrompt(t *testing.T) {
|
||||
NumCtx: tt.numCtx,
|
||||
},
|
||||
}
|
||||
got, err := trimmedPrompt(context.Background(), tt.chat, m)
|
||||
// TODO: add tests for trimming images
|
||||
got, _, err := trimmedPrompt(context.Background(), tt.chat, m)
|
||||
if tt.wantErr != "" {
|
||||
if err == nil {
|
||||
t.Errorf("ChatPrompt() expected error, got nil")
|
||||
|
Reference in New Issue
Block a user