Integrate Novita AI with LangChain to build intelligent, language model-driven applications. Learn setup, API usage, and function calling workflows.
NOVITA_API_KEY
as follows:
your-api-key
with the actual key you got from Novita AI.
@langchain-community
package, which includes the Novita AI integration.
Choose one of the following commands to install the necessary packages:
Using npm:
ChatNovitaAI
class.
Here’s an example that demonstrates how to do that:
.env
file in your project root and add your Novita AI API key:
@tool
decorator: