Fix: Correct the trace path in examples (#395)
### What changed?
The trace URL was using the wrong path format:
- Old: `/traces/{trace_id}`
- Fixed: `/traces/trace?trace_id={trace_id}`
<img width="781" alt="Screenshot 2025-03-30 at 5 54 11 pm"
src="https://github.com/user-attachments/assets/982fbb1d-7163-4438-b237-493e3100b5c7"
/>
This commit is contained in:
parent
757b7dafb1
commit
e827dfe75f
6 changed files with 6 additions and 6 deletions
|
|
@ -38,7 +38,7 @@ class FinancialResearchManager:
|
||||||
with trace("Financial research trace", trace_id=trace_id):
|
with trace("Financial research trace", trace_id=trace_id):
|
||||||
self.printer.update_item(
|
self.printer.update_item(
|
||||||
"trace_id",
|
"trace_id",
|
||||||
f"View trace: https://platform.openai.com/traces/{trace_id}",
|
f"View trace: https://platform.openai.com/traces/trace?trace_id={trace_id}",
|
||||||
is_done=True,
|
is_done=True,
|
||||||
hide_checkmark=True,
|
hide_checkmark=True,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ async def main():
|
||||||
) as server:
|
) as server:
|
||||||
trace_id = gen_trace_id()
|
trace_id = gen_trace_id()
|
||||||
with trace(workflow_name="MCP Filesystem Example", trace_id=trace_id):
|
with trace(workflow_name="MCP Filesystem Example", trace_id=trace_id):
|
||||||
print(f"View trace: https://platform.openai.com/traces/{trace_id}\n")
|
print(f"View trace: https://platform.openai.com/traces/trace?trace_id={trace_id}\n")
|
||||||
await run(server)
|
await run(server)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ async def main():
|
||||||
) as server:
|
) as server:
|
||||||
trace_id = gen_trace_id()
|
trace_id = gen_trace_id()
|
||||||
with trace(workflow_name="SSE Example", trace_id=trace_id):
|
with trace(workflow_name="SSE Example", trace_id=trace_id):
|
||||||
print(f"View trace: https://platform.openai.com/traces/{trace_id}\n")
|
print(f"View trace: https://platform.openai.com/traces/trace?trace_id={trace_id}\n")
|
||||||
await run(server)
|
await run(server)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ class ResearchManager:
|
||||||
with trace("Research trace", trace_id=trace_id):
|
with trace("Research trace", trace_id=trace_id):
|
||||||
self.printer.update_item(
|
self.printer.update_item(
|
||||||
"trace_id",
|
"trace_id",
|
||||||
f"View trace: https://platform.openai.com/traces/{trace_id}",
|
f"View trace: https://platform.openai.com/traces/trace?trace_id={trace_id}",
|
||||||
is_done=True,
|
is_done=True,
|
||||||
hide_checkmark=True,
|
hide_checkmark=True,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
$ uv run python -m examples.research_bot.main
|
$ uv run python -m examples.research_bot.main
|
||||||
|
|
||||||
What would you like to research? Best surfboards for beginners. I can catch my own waves, but previously used an 11ft board. What should I look for, what are my options? Various budget ranges.
|
What would you like to research? Best surfboards for beginners. I can catch my own waves, but previously used an 11ft board. What should I look for, what are my options? Various budget ranges.
|
||||||
View trace: https://platform.openai.com/traces/trace_...
|
View trace: https://platform.openai.com/traces/trace?trace_id=trace_...
|
||||||
Starting research...
|
Starting research...
|
||||||
✅ Will perform 15 searches
|
✅ Will perform 15 searches
|
||||||
✅ Searching... 15/15 completed
|
✅ Searching... 15/15 completed
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
$ uv run python -m examples.research_bot.main
|
$ uv run python -m examples.research_bot.main
|
||||||
What would you like to research? Caribbean vacation spots in April, optimizing for surfing, hiking and water sports
|
What would you like to research? Caribbean vacation spots in April, optimizing for surfing, hiking and water sports
|
||||||
View trace: https://platform.openai.com/traces/trace_....
|
View trace: https://platform.openai.com/traces/trace?trace_id=trace_....
|
||||||
Starting research...
|
Starting research...
|
||||||
✅ Will perform 15 searches
|
✅ Will perform 15 searches
|
||||||
✅ Searching... 15/15 completed
|
✅ Searching... 15/15 completed
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue