@letta-ai/letta-react 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-react",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Letta's react library",
5
5
  "private": false,
6
6
  "main": "./index.js",
@@ -11,7 +11,12 @@ export function useLettaQuery<Res>(
11
11
  operation: Query<Promise<Res>>,
12
12
  queryOptions: Options<Res>
13
13
  ) {
14
- const client = useRef(new LettaClient());
14
+ const client = useRef(
15
+ new LettaClient({
16
+ // force to use the default base URL, you should by proxy it in your server
17
+ baseUrl: '/',
18
+ })
19
+ );
15
20
 
16
21
  return useQuery<Res>({
17
22
  ...queryOptions,