Skip to content
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

Fix model display issue in request table view #2787

Closed
wants to merge 12 commits into from

Conversation

use-tusk[bot]
Copy link
Contributor

@use-tusk use-tusk bot commented Oct 16, 2024

Fixes #2784

This PR addresses the bug where the model information was not displaying correctly in the table view of requests, while it showed up correctly in the individual request view. The following changes were made to fix this issue:

  • Updated the useGetRequestsWithBodies hook to improve model extraction logic from various sources.
  • Modified the getNormalizedRequest function to handle cases with missing or undefined model information by setting it to "Unsupported".
  • Ensured that the RequestRow component correctly passes model information to the ModelPill component.
  • Updated the ModelPill component to display "Unsupported" when the model information is not available.

Tips:

  • Make sure to test changes before merging.
  • Submit a "Request Changes" review to address nits. If major changes are needed, retry the issue from the Tusk app with additional context.
  • Close this PR with a comment if it's obviously incorrect. This will improve my future PRs.
  • Go to the Tusk activity logs or issue to see more details.

Copy link

vercel bot commented Oct 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
helicone ❌ Failed (Inspect) Oct 16, 2024 8:38pm
helicone-bifrost ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2024 8:38pm
helicone-eu ❌ Failed (Inspect) Oct 16, 2024 8:38pm

@@ -194,9 +194,17 @@ const isAssistantRequest = (request: HeliconeRequest) => {

const getNormalizedRequest = (request: HeliconeRequest): NormalizedRequest => {
try {
return getRequestBuilder(request).build();
const normalizedRequest = getRequestBuilder(request).build();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not solving the issue. If the model in the images correctly shows in the request drawer, it should also show correctly in the request page. There is another issue here.

Copy link
Contributor Author

use-tusk bot commented Oct 16, 2024

Addressing your review. View activity logs for details.

Copy link
Contributor Author

use-tusk bot commented Oct 16, 2024

@colegottdank I've addressed your review, but the automated checks are failing. If the PR is still not correct, consider closing it with a comment explaining why. This will improve my future PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Model on individual request view shows up correctly, but not when viewing entire table
1 participant