-
Notifications
You must be signed in to change notification settings - Fork 255
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
[Feature] new playground hard-trimmed #2400
[Feature] new playground hard-trimmed #2400
Conversation
…pe, remove entrypoint, etc.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
data = str(data) | ||
|
||
return data | ||
|
||
async def fetch_inline_trace( |
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.
I copied the changes to this code, but not sure I understand everything
not ag.tracing.is_inline_trace_ready(trace_id) | ||
and remaining_steps > 0 | ||
): | ||
await sleep(TIMESTEP) |
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.
why did we remove this?
if inline: | ||
if WAIT_FOR_SPANS: |
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.
why did we set this to true per default
|
||
await sleep(FINALSTEP) |
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.
same, why did we remove
content_type = "text/plain" | ||
data = result | ||
elif not isinstance(result, str) and content_type == "text/plain": | ||
data = dumps(result) |
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.
so, it turns out that fastapi does this automatically, it stringifies the outputs and sets the content-type in the header to application/json in the case of non string output. Not sure whether we need this whole logic (old version and new version)
wrapper=test_wrapper, | ||
config_instance=config | ||
) | ||
if request.state.config["references"]: |
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.
why are we doing this? removing all references other than application ones?
No description provided.