-
Notifications
You must be signed in to change notification settings - Fork 426
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
Jonathan.chavez/llm experiments 2 #12500
base: main
Are you sure you want to change the base?
Conversation
…dd-trace-py into jonathan.chavez/llm-experiments
…havez/llm-experiments
else: | ||
return projects[0]["id"] |
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.
|
||
# Clear previous line if needed | ||
if self._last_len > len(status): | ||
print("\r" + " " * self._last_len, end="") |
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.
🟠 Code Quality Violation
use f-string or .format to format strings (...read more)
Concatenation of multiple strings is not efficient and make the code hard to read and understand.
Instead of concatenating multiple strings, use an f-string or a format string.
Learn More
if seconds < 60: | ||
return f"{seconds:.1f}s" | ||
minutes = int(seconds / 60) | ||
seconds = seconds % 60 |
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.
BenchmarksBenchmark execution time: 2025-02-25 21:04:28 Comparing candidate commit cbf4d2d in PR branch Found 2 performance improvements and 0 performance regressions! Performance is the same for 392 metrics, 2 unstable metrics. scenario:iast_aspects-ospathjoin_aspect
scenario:iast_aspects-ospathsplit_aspect
|
kwargs: Dict[str, Any], | ||
chat_completions: Any, | ||
is_workflow: bool = False, | ||
self, span: Span, args: List[Any], kwargs: Dict[str, Any], chat_completions: Any, is_workflow: bool = False |
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.
🟠 Code Quality Violation
do not use Any, use a concrete type (...read more)
Use the Any
type very carefully. Most of the time, the Any
type is used because we do not know exactly what type is being used. If you want to specify that a value can be of any type, use object
instead of Any
.
Learn More
6563434
to
cbf4d2d
Compare
Checklist
Reviewer Checklist