Skip to content

DX-1902: Check for includes instead of exact match in isText #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025

Conversation

CahidArda
Copy link
Collaborator

We checked for exact match for "application/json" etc in the response headers of a context.call. If we determine that the response is text, we try to parse it.

Rerank endpoint of resend responded with application/json; charset=utf-8, which meant that we don't parse the body, resulting in this issue #93

Fixes #93

@CahidArda CahidArda merged commit c7cfcff into main May 20, 2025
19 of 20 checks passed
@CahidArda CahidArda deleted the DX-1902-content-type-context-call-fix branch May 20, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Incorrect Return Type for context.api.resend.call
2 participants