Skip to content

Commit 5185337

Browse files
Dixie Flatlinedaniel-lxs
authored andcommitted
fixup! Manually specify openai-compat format and parse it
1 parent 8b6bbce commit 5185337

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/services/code-index/embedders/openai-compatible.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ export class OpenAICompatibleEmbedder implements IEmbedder {
114114
// The OpenAI package has custom parsing that truncates embedding dimension to 256,
115115
// which destroys accuracy.
116116
// If we pass `encoding_format: "base64"`, it does not perform any parsing,
117-
// leaving parsing up to us. This is likely a bug in the OpenAI package, possibly
118-
// addressed by https://github.com/openai/openai-node/pull/1448 (but maybe not)
117+
// leaving parsing up to us.
119118
encoding_format: "base64",
120119
})
121120

0 commit comments

Comments
 (0)