Skip to content

Commit 7b8ee57

Browse files
authored
feat(ai): support streaming (#899)
1 parent cbe1775 commit 7b8ee57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-model-introspection-visitor.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener
326326
\\"isRequired\\": false,
327327
\\"name\\": \\"onCreateAssistantResponsePirateChat\\",
328328
\\"type\\": {
329-
\\"model\\": \\"ConversationMessagePirateChat\\"
329+
\\"nonModel\\": \\"ConversationMessageStreamPart\\"
330330
},
331331
\\"arguments\\": {
332332
\\"conversationId\\": {

packages/appsync-modelgen-plugin/src/utils/process-conversation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function generateSubscriptionMetadata(routeName: string, modelName: string): Sch
185185
isArray: false,
186186
isRequired: false,
187187
name: `onCreateAssistantResponse${routeName}`,
188-
type: { model: modelName },
188+
type: { nonModel: 'ConversationMessageStreamPart' },
189189
arguments: {
190190
'conversationId': {
191191
name: 'conversationId',

0 commit comments

Comments
 (0)