We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b50ef46 commit defbd26Copy full SHA for defbd26
src/client.ts
@@ -473,8 +473,9 @@ export class Letta {
473
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
474
475
const defaultQuery = this.defaultQuery();
476
- if (!isEmptyObj(defaultQuery)) {
477
- query = { ...defaultQuery, ...query };
+ const pathQuery = Object.fromEntries(url.searchParams);
+ if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
478
+ query = { ...pathQuery, ...defaultQuery, ...query };
479
}
480
481
if (typeof query === 'object' && query && !Array.isArray(query)) {
0 commit comments