Skip to content

Commit

Permalink
fix: update request content type handling in openapiToFunction to rem…
Browse files Browse the repository at this point in the history
…ove default 'application/x-www-form-urlencoded'
  • Loading branch information
danny-avila committed Jan 30, 2025
1 parent e53bdac commit 9be0313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/data-provider/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ export function openapiToFunction(
path,
method,
operationId,
!!(operationObj['x-openai-isConsequential'] ?? false), // Custom extension for consequential actions
operationObj.requestBody ? 'application/json' : 'application/x-www-form-urlencoded',
!!(operationObj['x-openai-isConsequential'] ?? false),
operationObj.requestBody ? 'application/json' : '',
);

requestBuilders[operationId] = actionRequest;
Expand Down

0 comments on commit 9be0313

Please sign in to comment.