From d1e94cc484673126dc930a020ac8af5c88880d08 Mon Sep 17 00:00:00 2001 From: Dilawar Singh Date: Tue, 9 Sep 2025 13:06:42 +0530 Subject: [PATCH 1/3] Update introduction.mdx Fix typo in typescript function --- openllmetry/introduction.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openllmetry/introduction.mdx b/openllmetry/introduction.mdx index 435e0e7..a2c8c4a 100644 --- a/openllmetry/introduction.mdx +++ b/openllmetry/introduction.mdx @@ -47,7 +47,7 @@ const openai = new OpenAI(); class MyLLM { @traceloop.workflow("joke_creation") - async create_joke(): + async create_joke() { completion = await openai.chat.completions.create({ model: "gpt-3.5-turbo", messages: [{"role": "user", "content": "Tell me a joke about opentelemetry"}], From f2e922fdc068d8b99dab853058ea4b13ca225b6f Mon Sep 17 00:00:00 2001 From: Dilawar Singh Date: Tue, 9 Sep 2025 18:03:56 +0530 Subject: [PATCH 2/3] include suggestions from the bot --- openllmetry/introduction.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openllmetry/introduction.mdx b/openllmetry/introduction.mdx index a2c8c4a..ead991e 100644 --- a/openllmetry/introduction.mdx +++ b/openllmetry/introduction.mdx @@ -38,7 +38,7 @@ def create_joke(): return completion.choices[0].message.content ``` -```js Typescript +```ts Typescript import * as traceloop from "@traceloop/node-server-sdk"; import OpenAI from "openai"; From 988ba8aabde61720ba23dbddb94b6bcd50e37a4f Mon Sep 17 00:00:00 2001 From: Dilawar Singh Date: Sat, 20 Sep 2025 15:04:43 +0530 Subject: [PATCH 3/3] ts -> js --- openllmetry/introduction.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openllmetry/introduction.mdx b/openllmetry/introduction.mdx index ead991e..a2c8c4a 100644 --- a/openllmetry/introduction.mdx +++ b/openllmetry/introduction.mdx @@ -38,7 +38,7 @@ def create_joke(): return completion.choices[0].message.content ``` -```ts Typescript +```js Typescript import * as traceloop from "@traceloop/node-server-sdk"; import OpenAI from "openai";