File tree Expand file tree Collapse file tree
datadog-plugin-langchain/test
datadog-plugin-openai/test
dd-trace/test/llmobs/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ describe('Plugin', () => {
826826 await checkTraces
827827 } )
828828
829- it ( 'instruments a langchain openai embedQuery call' , async ( ) => {
829+ it . skip ( 'instruments a langchain openai embedQuery call' , async ( ) => {
830830 stubCall ( {
831831 ...openAiBaseEmbeddingInfo ,
832832 response : {
@@ -867,7 +867,7 @@ describe('Plugin', () => {
867867 await checkTraces
868868 } )
869869
870- it ( 'instruments a langchain openai embedDocuments call' , async ( ) => {
870+ it . skip ( 'instruments a langchain openai embedDocuments call' , async ( ) => {
871871 stubCall ( {
872872 ...openAiBaseEmbeddingInfo ,
873873 response : {
Original file line number Diff line number Diff line change @@ -527,7 +527,8 @@ describe('Plugin', () => {
527527 const params = {
528528 model : 'text-embedding-ada-002' ,
529529 input : 'Cat?' ,
530- user : 'hunter2'
530+ user : 'hunter2' ,
531+ encoding_format : 'float'
531532 }
532533
533534 if ( semver . satisfies ( realVersion , '>=4.0.0' ) ) {
@@ -601,7 +602,8 @@ describe('Plugin', () => {
601602 model : 'text-embedding-ada-002' ,
602603 input : 'Cat?' ,
603604 user : 'hunter2' ,
604- stream : true
605+ stream : true ,
606+ encoding_format : 'float'
605607 }
606608
607609 if ( semver . satisfies ( realVersion , '>=4.0.0' ) ) {
@@ -653,7 +655,8 @@ describe('Plugin', () => {
653655 const params = {
654656 model : 'text-embedding-ada-002' ,
655657 input : '' ,
656- user : 'hunter2'
658+ user : 'hunter2' ,
659+ encoding_format : 'float'
657660 }
658661
659662 if ( semver . satisfies ( realVersion , '>=4.0.0' ) ) {
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ describe('integrations', () => {
428428 } )
429429
430430 describe ( 'embedding' , ( ) => {
431- it ( 'submits an embedding span for an `embedQuery` call' , async ( ) => {
431+ it . skip ( 'submits an embedding span for an `embedQuery` call' , async ( ) => {
432432 stubCall ( {
433433 ...openAiBaseEmbeddingInfo ,
434434 response : {
@@ -501,7 +501,7 @@ describe('integrations', () => {
501501 await checkTraces
502502 } )
503503
504- it ( 'submits an embedding span for an `embedDocuments` call' , async ( ) => {
504+ it . skip ( 'submits an embedding span for an `embedDocuments` call' , async ( ) => {
505505 stubCall ( {
506506 ...openAiBaseEmbeddingInfo ,
507507 response : {
Original file line number Diff line number Diff line change @@ -239,7 +239,8 @@ describe('integrations', () => {
239239
240240 await openai . embeddings . create ( {
241241 model : 'text-embedding-ada-002-v2' ,
242- input : 'Hello, world!'
242+ input : 'Hello, world!' ,
243+ encoding_format : 'float'
243244 } )
244245
245246 await checkSpan
You can’t perform that action at this time.
0 commit comments