Quickly integrate an Intelligent Iterations chat bot into your application
-
Chat Stream: Use
sdk.startChatStream(params)
for streaming chats. -
Single Chat: Use
sdk.chatWithAgentFuture(options)
for single chat responses.
- Visit LLM Lab to log in or create an account.
- Create an API Key: Within your account settings, navigate to the API keys section and generate a new key. Remember to keep it secure.
- Create an Agent: Set up a new agent in your account and note its ID for SDK usage.
-
Install Dependencies: Ensure
node-fetch
is added to your project. -
SDK Setup:
import { LLMLabSDK } from '../index.js'; const sdk = new LLMLabSDK('your_apikey');
Check the example
folder for detailed usage.