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

Use SDK response in playground #107

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

andresgutgon
Copy link
Contributor

@andresgutgon andresgutgon commented Aug 8, 2024

What?

Use SDK to fetch data from gateway and use it in Playground

TODO

  • SDK accumulates conversation messages and return at the end
  • Add tests for runDocument
  • Handle errors for example wrong model name

@andresgutgon andresgutgon added the 🚧 wip Work in progress label Aug 8, 2024
@andresgutgon andresgutgon force-pushed the feature/use-sdk-response-in-playground branch from 9ed30a1 to 1d90026 Compare August 12, 2024 15:05
@andresgutgon andresgutgon removed the 🚧 wip Work in progress label Aug 12, 2024
totalTokens: 0,
},
toolCalls: [],
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This way we catch the error from AI apis providers
image

@andresgutgon andresgutgon force-pushed the feature/use-sdk-response-in-playground branch from 1d90026 to d8b0d2d Compare August 12, 2024 15:10
},
]

export const FINAL_RESPONSE = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@csansoon this is the output of runDocument

@andresgutgon andresgutgon force-pushed the feature/use-sdk-response-in-playground branch from d8b0d2d to 8459855 Compare August 12, 2024 15:23
@andresgutgon andresgutgon requested a review from csansoon August 12, 2024 15:23
csansoon
csansoon previously approved these changes Aug 12, 2024
@andresgutgon andresgutgon force-pushed the feature/use-sdk-response-in-playground branch from 8459855 to 5848e97 Compare August 12, 2024 16:36
@andresgutgon andresgutgon force-pushed the feature/use-sdk-response-in-playground branch from 5848e97 to 3163ffa Compare August 12, 2024 16:45

type Message = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

My OCD is going to explode. We need to DRY all these types

@andresgutgon andresgutgon merged commit 3866bfb into main Aug 12, 2024
2 checks passed
@andresgutgon andresgutgon deleted the feature/use-sdk-response-in-playground branch August 12, 2024 16:54
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.

2 participants