Skip to content

Commit

Permalink
fix: update paths in ollama tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgpruitt committed Oct 9, 2024
1 parent 1007fcd commit f7884d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/extension/tests/test_ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_ollama_image(cur_with_ollama_host):
select ai.ollama_generate
( 'llava:7b'
, 'Please describe this image.'
, _images=> array[pg_read_binary_file('/pgai/tests/postgresql-vs-pinecone.jpg')]
, _images=> array[pg_read_binary_file('/pgai/projects/extension/tests/postgresql-vs-pinecone.jpg')]
, _system=>'you are a helpful assistant'
, _options=> jsonb_build_object
( 'seed', 42
Expand Down Expand Up @@ -209,7 +209,7 @@ def test_ollama_chat_complete_image(cur_with_ollama_host):
( jsonb_build_object
( 'role', 'user'
, 'content', 'describe this image'
, 'images', jsonb_build_array(encode(pg_read_binary_file('/pgai/tests/postgresql-vs-pinecone.jpg'), 'base64'))
, 'images', jsonb_build_array(encode(pg_read_binary_file('/pgai/projects/extension/tests/postgresql-vs-pinecone.jpg'), 'base64'))
)
)
, _options=> jsonb_build_object
Expand Down

0 comments on commit f7884d3

Please sign in to comment.