Skip to content

Commit 37d2317

Browse files
committed
fixing a syntax issue
1 parent 7c758bf commit 37d2317

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ui/src/components/chat-panel/ChatPanel.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ const getChatResponse = async (s3Uri, prompt) => {
1515

1616
// commenting this out until model selection for chat is available again on this screen
1717
// logger.debug('modelId:', modelId);
18-
const modelSelection = 'us.amazon.nova-pro-v1:0';
19-
const response = await API.graphql({ query: chatWithDocument, variables: { s3Uri, prompt, modelSelection } });
18+
const modelId = 'us.amazon.nova-pro-v1:0';
19+
const response = await API.graphql({ query: chatWithDocument, variables: { s3Uri, prompt, modelId } });
2020
// logger.debug('response:', response);
2121
return response;
2222
};
2323

24+
// commenting this out until model selection for chat is available again on this screen
2425
// const modelOptions = [
2526
// { value: 'us.amazon.nova-lite-v1:0', label: 'Nova Lite' },
2627
// { value: 'us.amazon.nova-pro-v1:0', label: 'Nova Pro' },

0 commit comments

Comments
 (0)