-
Notifications
You must be signed in to change notification settings - Fork 138
refactor: decouples translators from extproc #1507
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
Conversation
|
won't merge until v0.4 |
f4c6221 to
87a9506
Compare
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com> # Conflicts: # internal/extproc/translator/openai_gcpvertexai_test.go
312acd9 to
88a53c1
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1507 +/- ##
==========================================
- Coverage 84.15% 84.00% -0.15%
==========================================
Files 150 149 -1
Lines 12968 12837 -131
==========================================
- Hits 10913 10784 -129
+ Misses 1434 1432 -2
Partials 621 621 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
# Conflicts: # internal/extproc/translator/imagegeneration_openai_openai_test.go # internal/extproc/translator/openai_gcpvertexai.go
|
Sorry bad merge |
| } | ||
| } | ||
| ], | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really sorry, the gcpToolCallsChunk should have "\n\n" between the chunks, otherwise the test does not make sense. I put it in #1537. Sorry for this mistake!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't be sorry! let's make sure all tests are working properly carefully from next time :)
**Description** As @mathetake pointed out, the test function in #1524 is quite wrong. @mathetake fixed some in #1507, but there is still one bug: I did not insert "\n\n" in the string `gcpToolCallsChunk`, thus, it just parsed out one gcp chunk, which makes the test meaningless (it's to test across chunks). Really sorry for the mistake in the tests! --------- Signed-off-by: yxia216 <yxia216@bloomberg.net> Co-authored-by: Ignasi Barrera <ignasi@tetrate.io>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
|
/retest |
Description
The translators shouldn't have to be tied with ext_proc APIs since it's none of their concerns. This commit decouples the translator package from them so that we can easily use them in dynamic modules too.
Related Issues/PRs (if applicable)
Preparation for #90