Skip to content

Commit

Permalink
Merge pull request #137 from SciPhi-AI/Nolan/LargePayloads
Browse files Browse the repository at this point in the history
Fix JSON parsing for large payloads
  • Loading branch information
NolanTrem authored Jan 7, 2025
2 parents e3ac741 + d8589b7 commit f0529e9
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 75 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"postcss": "^8.4.49",
"posthog-js": "^1.194.3",
"r2r": "0.0.0-beta.0",
"r2r-js": "^0.4.7",
"r2r-js": "^0.4.8",
"radix-ui": "^1.0.1",
"react": "18.3.1",
"react-chartjs-2": "^5.2.0",
Expand Down
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/components/ChatDemo/answer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const Answer: FC<{
}

if (message.sources.kg) {
console.log('message.sources.kg', message.sources.kg);
const kgLocalResult: KGSearchResult[] = JSON.parse(message.sources.kg);
const entitiesArray = kgLocalResult.filter(
(item: any) => item.result_type === 'entity'
Expand Down
Loading

0 comments on commit f0529e9

Please sign in to comment.