Overview
Integration details
Class | Package | Local | Serializable | JS support | Downloads | Version |
---|---|---|---|---|---|---|
ChatYi | 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 ChatYi models you’ll need to create a/an 01.AI account, get an API key, and install thelangchain_community
integration package.
Credentials
Head to 01.AI to sign up for 01.AI and generate an API key. Once you’ve done this set theYI_API_KEY
environment variable:
Installation
The LangChain ModuleName integration lives in thelangchain_community
package:
Instantiation
Now we can instantiate our model object and generate chat completions:- TODO: Update model instantiation with relevant params.