@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/dist/index.js
CHANGED
@@ -48258,7 +48258,12 @@ var import_letta_client = __toESM(require_letta_client());
|
|
48258
48258
|
import { useQuery } from "@tanstack/react-query";
|
48259
48259
|
import { useRef } from "react";
|
48260
48260
|
function useLettaQuery(operation, queryOptions) {
|
48261
|
-
const client = useRef(
|
48261
|
+
const client = useRef(
|
48262
|
+
new import_letta_client.LettaClient({
|
48263
|
+
// force to use the default base URL, you should by proxy it in your server
|
48264
|
+
baseUrl: "/"
|
48265
|
+
})
|
48266
|
+
);
|
48262
48267
|
return useQuery({
|
48263
48268
|
...queryOptions,
|
48264
48269
|
queryFn: async () => {
|