-
Notifications
You must be signed in to change notification settings - Fork 120
feat: initial implementation of openai responses api #1429
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sivanantham Chinnaiyan <sivanantham.chinnaiyan@ideas2it.com>
- Implement unit tests for the OpenAI responses translator in `openai_responses_test.go`, covering request body handling, response body processing, streaming response handling, and error conversion. - Introduce metrics tests in `responses_metrics_test.go` to validate token usage and latency recording. - Enhance tracing tests in `api_test.go`, `request_attrs_test.go`, `response_attrs_test.go`, and `responses_test.go` to ensure proper attribute recording for requests and responses. - Add tests for the responses span in `span_test.go` to verify correct behavior during response recording and error handling. - Validate the responses tracer exporter behavior in `tracing_test.go` to ensure correct integration with OpenTelemetry. Signed-off-by: Sivanantham Chinnaiyan <sivanantham.chinnaiyan@ideas2it.com>
…ckage Signed-off-by: Sivanantham Chinnaiyan <sivanantham.chinnaiyan@ideas2it.com>
… body Signed-off-by: Sivanantham Chinnaiyan <sivanantham.chinnaiyan@ideas2it.com>
ee26893 to
a588b67
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1429 +/- ##
==========================================
+ Coverage 83.67% 83.79% +0.11%
==========================================
Files 139 143 +4
Lines 12302 12822 +520
==========================================
+ Hits 10294 10744 +450
- Misses 1400 1445 +45
- Partials 608 633 +25 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… methods in responsesProcessorUpstreamFilter Signed-off-by: Sivanantham Chinnaiyan <sivanantham.chinnaiyan@ideas2it.com>
a70d9da to
f783d51
Compare
|
let me get back to this one next week -- this week we will release v0.4 and the kubecon is coming next week so not sure if we can have much cycles to help this land 🙏 |
Description
Related Issues/PRs (if applicable)
Special notes for reviewers (if applicable)