File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
examples/nextjs-example/src/app/(app)/chat Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ targets:
1414 sourceRevisionDigest: sha256:29166bebb2ee893b33cbbd3101d1c1d62530d1b96915dce90ce1f7dbfe4ae4d1
1515 sourceBlobDigest: sha256:5d2f001af7f24847d62d8c428c31c8068cad86385854746672a82307db00a8f3
1616 codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
17- codeSamplesRevisionDigest: sha256:3c7d0dc2d2ab00a11e31ed0b7d1c836edaafd9e1d18302954afd1fbf6ff0308a
17+ codeSamplesRevisionDigest: sha256:3fec988a6bd4cf0a5c5ae55c3dc65df94b7c015ea12aea2b3a321a7a2ac7cfba
1818workflow:
1919 workflowVersion: 1.0.0
2020 speakeasyVersion: latest
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export default function Page() {
9999 // Stream chunks into the latest message
100100 const chunks : string [ ] = [ ] ;
101101 for await ( const chunk of result ) {
102- chunks . push ( chunk . data . choices [ 0 ] . delta . content || "" ) ;
102+ chunks . push ( chunk . choices [ 0 ] . delta . content || "" ) ;
103103 setMessages ( ( prev ) => {
104104 const newMessages = [ ...prev ] ;
105105 const lastMessage = newMessages [ newMessages . length - 1 ] ;
Original file line number Diff line number Diff line change 5555 "scripts" : {
5656 "lint" : " eslint --cache --max-warnings=0 src" ,
5757 "build" : " tsc" ,
58- "prepublishOnly" : " npm run build" ,
59- "test" : " vitest run" ,
60- "test:e2e" : " vitest run tests/e2e" ,
61- "test:watch" : " vitest"
58+ "prepublishOnly" : " npm run build"
6259 },
6360 "peerDependencies" : {
6461 "@tanstack/react-query" : " ^5" ,
You can’t perform that action at this time.
0 commit comments