File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/sdk/server-ai/examples/vercel-ai/src Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1111 - ' **.md'
1212
1313jobs :
14- build-test-node- server-otel :
14+ build-test-server-sdk-ai :
1515 runs-on : ubuntu-latest
1616 steps :
1717 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 11/* eslint-disable no-console */
22import { openai } from '@ai-sdk/openai' ;
33import { generateText , streamText } from 'ai' ;
4+
45import { init , type LDClient , type LDContext } from '@launchdarkly/node-server-sdk' ;
56import { initAi } from '@launchdarkly/server-sdk-ai' ;
67
@@ -64,6 +65,8 @@ async function main() {
6465 const streamResult = aiConfig . tracker . trackVercelAISDKStreamTextMetrics ( ( ) =>
6566 streamText ( aiConfig . toVercelAISDK ( openai ) ) ,
6667 ) ;
68+
69+ // eslint-disable-next-line no-restricted-syntax
6770 for await ( const textPart of streamResult . textStream ) {
6871 process . stdout . write ( textPart ) ;
6972 }
You can’t perform that action at this time.
0 commit comments