Skip to content

Commit b343f4a

Browse files
committed
Improved example [skip ci]
1 parent f4aa20f commit b343f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/pgvector/OpenAITest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private List<float[]> fetchEmbeddings(String[] input, String apiKey) throws IOEx
7373
for (String v : input) {
7474
root.withArray("input").add(v);
7575
}
76-
root.put("model", "text-embedding-ada-002");
76+
root.put("model", "text-embedding-3-small");
7777
String json = mapper.writeValueAsString(root);
7878

7979
HttpClient client = HttpClient.newHttpClient();

0 commit comments

Comments
 (0)