Skip to content

Commit b424052

Browse files
committed
docs: update lw blog post
1 parent d5dcf96 commit b424052

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

pages/blog/launch-week-1.mdx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ import { BlogHeader } from "@/components/blog/BlogHeader";
2323

2424
We’re excited to announce Langfuse's first launch week. We're kicking it off on Monday April 22nd and will release a major upgrade to the Langfuse platform every day until Friday.
2525

26-
**How to follow along?** You can check back on this page for updates throughout the week. We will pin the latest launch to the top of this page. You can also follow us on socials:
27-
2826
- ⭐️ [Star us](https://github.com/langfuse/langfuse/) on Github & see _all_ of our releases!
2927
- [Twitter](https://x.com/langfuse) will be our main channel for all of Launch Week #1
3028
- Join our [first town hall](#townhall) on Wednesday
@@ -33,6 +31,25 @@ import { Tweet } from "@/components/Tweet";
3331

3432
<Tweet id="1781324385774674407" />
3533

34+
## Launches
35+
36+
### Day 0: OpenAI JS SDK Integration
37+
38+
```typescript /import { observeOpenAI } from "langfuse"/ /observeOpenAI/
39+
import OpenAI from "openai";
40+
import { observeOpenAI } from "langfuse";
41+
42+
// wrap the OpenAI SDK
43+
const openai = observeOpenAI(new OpenAI());
44+
45+
// use the OpenAI SDK as you normally would
46+
const res = await openai.chat.completions.create({
47+
messages: [{ role: "system", content: "Tell me a story." }],
48+
});
49+
```
50+
51+
We [launched](/changelog/2024-04-21-openai-integration-JS-SDK) a new wrapper for the OpenAI JS SDK. This integration, designed to enable easier monitoring of OpenAI API usage, features seamless observability with enhancements like automatic tracking of prompts, completions, and API errors, as well as insights into model usage and costs. After a soft launch that gathered user feedback for improvements, the integration is now fully available, complete with comprehensive [documentation](/docs/integrations/openai/js/get-started) and an [example notebook](/docs/integrations/openai/js/examples).
52+
3653
## Launch Week Events
3754

3855
### Wednesday: First virtual town hall [#townhall]

0 commit comments

Comments
 (0)