@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/dist/index.js +6 -1
- package/dist/index.js.map +2 -2
- package/index.js +6 -1
- package/index.js.map +2 -2
- package/package.json +1 -1
- package/src/useLettaQuery/useLettaQuery.ts +6 -1
package/package.json
CHANGED
@@ -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(
|
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,
|