ChatReka
This notebook provides a quick overview for getting started with Reka chat models.
Reka has several chat models. You can find information about their latest models and their costs, context windows, and supported input types in the Reka docs.
Overview
Integration details
Class | Package | Local | Serializable | JS support | Package downloads | Package latest |
---|---|---|---|---|---|---|
[ChatReka] | langchain_community | ✅ | ❌ | ❌ |
Model features
Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
---|---|---|---|---|---|---|---|---|---|
✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |
Setup
To access Reka models you'll need to create an Reka developer account, get an API key, and install the langchain_community
integration package and the reka python package via 'pip install reka-api'.
Credentials
Head to https://platform.reka.ai/ to sign up for Reka and generate an API key. Once you've done this set the REKA_API_KEY environment variable:
Installation
The LangChain ModuleName integration lives in the langchain_community
package:
%pip install -qU langchain_community reka-api
Note: you may need to restart the kernel to use updated packages.
Instantiation
import getpass
import os
os.environ["REKA_API_KEY"] = getpass.getpass("Enter your Reka API key: ")
Optional: use Langsmith to trace the execution of the model
import getpass
import os
os.environ["LANGSMITH_TRACING"] = "true"
os.environ["LANGSMITH_API_KEY"] = getpass.getpass("Enter your Langsmith API key: ")
from langchain_community.chat_models import ChatReka
model = ChatReka()
API Reference:ChatReka