Feautre/integration with web api#986
Merged
chakravarthik27 merged 5 commits intorelease/2.0.1from Mar 3, 2024
Merged
Conversation
Prikshit7766
approved these changes
Mar 3, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhancing LangTest for Generic API Support
Description:
In response to user needs for flexibility in utilizing various language models hosted on different platforms, we're excited to introduce a major enhancement to LangTest: Generic API Support. This new feature empowers users to seamlessly integrate any API system into LangTest, enabling them to leverage their preferred language models with ease.
Key Features:
Generic API Integration: LangTest now supports connecting to any API system, allowing users to specify the API URL, parameters, and result parsing function.
Customizable Parameters: Users can define the URL and parameters of their API, along with a function to parse the results according to their specific requirements.
Enhanced Flexibility: This update provides users unparalleled flexibility in utilizing their preferred language models, whether hosted on OpenAI, Hugging Face, or other custom platforms like vLLM.
Parameters:
Define the
input_processerfunction for creating a payload and theoutput_parserfunction is used to extract the output from the response.Setup Code:
To take advantage of this feature, users can utilize the following setup code:
Usage:
Following this setup, users can seamlessly integrate their custom API systems into LangTest, enabling them to perform language testing and evaluation using their preferred language models.
Feedback and Contribution:
We encourage the community to explore this new feature, provide feedback, and contribute to further improvements. Your input is invaluable in shaping the future of LangTest and ensuring it meets the diverse needs of language testing professionals and enthusiasts.
Conclusion:
With Generic API Support, LangTest continues to evolve as a versatile tool for language testing and evaluation, offering users unprecedented flexibility in harnessing the power of language models hosted across different platforms. Start integrating your custom APIs today and unlock a new level of language testing capabilities with LangTest.