Skip to content

Commit

Permalink
Add necessary package.json changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrush committed Aug 6, 2024
1 parent f8b45f8 commit 2f13c45
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@playwright/test": "^1.44.1",
"chalk": "^5.3.0",
"eslint": "^7.32.0",
"eslint-config-vercel-ai": "workspace:*",
"eslint-config-vercel-ai": "tools/eslint-config",
"husky": "^8.0.0",
"lint-staged": "^15.2.4",
"next": "15.0.0-canary.23",
Expand Down Expand Up @@ -57,5 +57,9 @@
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "all"
},
"workspaces": ["tools/eslint-config"],
"exports": {
"@ai-sdk": "./packages"
}
}
7 changes: 7 additions & 0 deletions packages/ui-utils/src/use-assistant-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ Custom fetch implementation. You can use it as a middleware to intercept request
or to provide a custom fetch implementation for e.g. testing.
*/
fetch?: FetchFunction;

/**
* Added by Hypercontext for internal use
*
* An optional flag to retrieve metadata of each message
*/
sendMessageMetadata?: boolean;
};

0 comments on commit 2f13c45

Please sign in to comment.