Skip to content

Commit 2875afb

Browse files
authored
fix (docs): update example usage for voyage-ai provider (#5349)
1 parent 2a227cb commit 2875afb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: content/providers/03-community-providers/61-voyage-ai.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ import { voyage } from 'voyage-ai-provider';
9494
const embeddingModel = voyage.textEmbeddingModel('voyage-3', {
9595
inputType: 'document', // 'document' or 'query'
9696
truncation: false,
97-
outputDimension: '1024', // the new model voyage-code-3, voyage-3-large has 4 different output dimensions: 256, 512, 1024 (default), 2048
98-
output_dtype: 'float', // output data types - int8, uint8, binary, ubinary are supported by the new model voyage-code-3, voyage-3-large
97+
outputDimension: 1024, // the new model voyage-code-3, voyage-3-large has 4 different output dimensions: 256, 512, 1024 (default), 2048
98+
outputDtype: 'float', // output data types - int8, uint8, binary, ubinary are supported by the new model voyage-code-3, voyage-3-large
9999
});
100100
```
101101

0 commit comments

Comments
 (0)