Skip to content

Commit

Permalink
should fix TS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner committed Oct 16, 2024
1 parent d902720 commit 4c167ed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"private": true,
"devDependencies": {
"typedoc": "^0.25.8",
"typescript": "^4.6"
"typescript": "^5.0"
}
}
4 changes: 3 additions & 1 deletion docs/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,9 @@ cls.myLLM()
cls.myOtherLLM()

// export a span
llmobs.enable({ mlApp: 'myApp' })
llmobs.exportSpan()
const llmobsSpanCtx = llmobs.exportSpan(span)
const llmobsSpanCtx = llmobs.exportSpan(llmobs.startSpan({ name: 'name', kind: 'llm' }))
llmobsSpanCtx.traceId;
llmobsSpanCtx.spanId;

Expand All @@ -623,6 +624,7 @@ llmobs.annotate(span, {
})

// submit evaluation
llmobs.disable()
llmobs.submitEvaluation(llmobsSpanCtx, {
label: 'my-eval-metric',
metricType: 'categorical',
Expand Down
1 change: 0 additions & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"module": "commonjs",
"baseUrl": ".",
"strict": true,
"experimentalDecorators": true
},
"files": [
"../index.d.ts"
Expand Down
8 changes: 4 additions & 4 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ typedoc@^0.25.8:
minimatch "^9.0.3"
shiki "^0.14.7"

typescript@^4.6:
version "4.9.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
typescript@^5.0:
version "5.6.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==

vscode-oniguruma@^1.7.0:
version "1.7.0"
Expand Down

0 comments on commit 4c167ed

Please sign in to comment.