Skip to content

feat: send back raw request in extra fields#1010

Merged
Pratham-Mishra04 merged 1 commit into
mainfrom
12-05-feat_send_back_raw_request_support
Dec 12, 2025
Merged

feat: send back raw request in extra fields#1010
Pratham-Mishra04 merged 1 commit into
mainfrom
12-05-feat_send_back_raw_request_support

Conversation

@Pratham-Mishra04
Copy link
Copy Markdown
Collaborator

Summary

This PR adds the ability to send back raw requests in API responses, complementing the existing raw response functionality. This feature helps with debugging and advanced use cases by providing visibility into the exact request payload sent to provider APIs.

Changes

  • Added SendBackRawRequest field to provider configurations
  • Modified provider implementations to capture and return raw request data
  • Updated response handling to include raw requests in extra fields
  • Added database migrations for storing raw requests in logs
  • Enhanced UI to display raw requests in log details
  • Added configuration options in the provider settings UI

Type of change

  • Feature
  • Bug fix
  • Refactor
  • Documentation
  • Chore/CI

Affected areas

  • Core (Go)
  • Transports (HTTP)
  • Providers/Integrations
  • Plugins
  • UI (Next.js)
  • Docs

How to test

  1. Enable the "Include Raw Request" option in a provider's settings
  2. Make a request to that provider
  3. Check the response for the raw_request field in extra_fields
  4. View the request details in the logs UI to see the raw request
# Core/Transports
go version
go test ./...

# UI
cd ui
pnpm i
pnpm test
pnpm build

Screenshots/Recordings

N/A

Breaking changes

  • Yes
  • No

Related issues

N/A

Security considerations

Raw requests may contain sensitive information like API keys or user data. Users should be aware that enabling this feature will store this information in logs and return it in responses.

Checklist

  • I added/updated tests where appropriate
  • I updated documentation where needed
  • I verified builds succeed (Go and UI)
  • I verified the CI pipeline passes locally if applicable

Loading
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.

[Feature]: Feature Request: Add Complete Request/Response JSON Logging Similar to LiteLLM

1 participant