Skip to content

Commit

Permalink
fix(ci): revert typescript 5.0 for docs tests (#4846)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner authored and rochdev committed Oct 31, 2024
1 parent 9a1f3d3 commit 9e16a6b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions docs/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,19 +570,6 @@ llmobs.trace({ name: 'name', kind: 'llm' }, (span, cb) => {
llmobs.wrap({ kind: 'llm' }, function myLLM () {})()
llmobs.wrap({ kind: 'llm', name: 'myLLM', modelName: 'myModel', modelProvider: 'myProvider' }, function myFunction () {})()

// decorate a function
class MyClass {
@llmobs.decorate({ kind: 'llm' })
myLLM () {}

@llmobs.decorate({ kind: 'llm', name: 'myOtherLLM', modelName: 'myModel', modelProvider: 'myProvider' })
myOtherLLM () {}
}

const cls = new MyClass()
cls.myLLM()
cls.myOtherLLM()

// export a span
llmobs.enable({ mlApp: 'myApp' })
llmobs.trace({ kind: 'llm', name: 'myLLM' }, (span) => {
Expand Down

0 comments on commit 9e16a6b

Please sign in to comment.