community: integration of kluster.ai with tests, examples and documentation#1
community: integration of kluster.ai with tests, examples and documentation#1troels-im wants to merge 12 commits into
Conversation
- Introduced `ChatKlusterAi` and `KlusterAi` classes to integrate with Kluster.ai API for chat and language model functionalities. - Updated imports in `__init__.py` files to include new Kluster.ai models. - Enhanced error handling and parameter validation for API interactions. - Added support for streaming responses in both chat and model classes. - Implemented unit and integration tests to ensure proper functionality of new classes and methods.
|
is KlusterAi (lowercase 'i') the standard? Looks a little odd to me that it's not "AI".. |
- Updated Jupyter notebook for chat integration with KlusterAi, including improved translation examples and logging output. - Added new Python module for KlusterAi chat model functionalities. - Enhanced existing classes to point to the new KlusterAi API endpoint. - Introduced a new notebook section to guide users on setting API keys and using large language models. - Created dedicated Markdown documentation for KlusterAi, detailing setup and model usage. This commit aims to provide comprehensive integration support for KlusterAi in our LangChain ecosystem.
|
There was a problem hiding this comment.
I noticed that the ipynb has a slightly different introduction to Kluster than the LLMS file...
KlusterAI is a serverless inference service that provides access to a variety of LLMs. This notebook goes over how to use LangChain with KlusterAI for language models."
vs
kluster.ai is a inference service that provides access to a variety of high-performance LLMs including Meta's Llama 3.1 and Llama 3.3 models. This notebook goes over how to use LangChain with kluster.ai for chat models.
I also wanted to bring up a fresh intro that Anjin put together (feel free to truncate) etc but I like the first sentence of this intro a bit more as it feels more recent / descriptive
kluster.ai is a developer-focused AI platform offering a versatile and growing suite of powerful models, including Llama 3.3, 3.1, DeepSeek-R1, DeepSeekV3, Gemma 3, and Qwen2.5, with new models being added regularly to stay at the forefront of AI innovation. kluster.ai was the first platform to host DeepSeek-R1, highlighting its commitment to delivering cutting-edge tools for developers. With seamless fine-tuning capabilities, developers can customize models to fit their specific project requirements, ensuring optimal performance while maintaining cost efficiency. By integrating kluster.ai, open-source creators gain access to state-of-the-art AI tools and developer-friendly solutions, empowering them to enhance their projects with precision and flexibility.
There was a problem hiding this comment.
Thanks! I will update this - I haven't paid much attention to the copy, more to the functionality.
Co-authored-by: Kevin Neilson <kevin@papermoon.io>
Co-authored-by: Kevin Neilson <kevin@papermoon.io>
| klusterai_api_key="my-api-key") | ||
| """ | ||
|
|
||
| model_id: str = DEFAULT_MODEL_ID |
There was a problem hiding this comment.
Why model_id and not model? Found this from OpenAI and this from anthropic
Also HuggingFace
How to test
To test, checkout out the repo and from the root directory, run the following commands:
Then navigate to
docs/docs/integrationsand check out the examples inchatandllms.LangChain PR template
Thank you for contributing to LangChain!
[v] PR title: "community: integration of kluster.ai with tests, examples and documentation"
PR message: Delete this entire checklist and replace with
[v] Add tests and docs: If you're adding a new integration, please include
docs/docs/integrationsdirectory.Lint and test: Run (v)
make format,make lintandmake testfrom the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/Additional guidelines:
If no one reviews your PR within a few days, please @-mention one of baskaryan, eyurtsev, ccurme, vbarda, hwchase17.