aico.js
v1.0.1
Published
<p align="center"> <img src="https://imgur.com/a/706NJRw" alt="aico" /> </p>
Downloads
14
Maintainers
Readme
AICO
❓ About:
AICO is a powerful ai module made with RapidAPI's Vast AI APIs
✨ Features:
- Easy to Use
- Uses Rapid Api
- Fast Response
- Includes AIs Like ChatGPT, GeminiAI, Meta Llama 3!
👀 Examples:
Chat GPT
Example:
const { ChatGPT } = require('aico.js')
const model = new ChatGPT({ RapidAPIToken: 'YOUR RAPID API KEY' })
(async () => {
const response = await model.generateResponse('Hello Chat GPT!')
const message = response.choices[0].message.content
console.log(`Response from chat gpt: ${message}`)
})
Gemini AI
Example:
const { GeminiAI } = require('aico.js')
const model = new GeminiAI({ RapidAPIToken: 'YOUR RAPID API KEY' })
(async () => {
const response = await model.generateResponse('Hello Gemini!')
const message = response.candidates[0].content.parts[0].text
console.log(`Response from gemini ai: ${message}`)
})
Meta Llama 3
Example
const { MetaLlama3 } = require('aico.js')
const model = new MetaLlama3({ RapidAPIToken: 'YOUR RAPID API KEY' })
(async () => {
const response = await model.generateResponse('Hello Meta Llama!')
const message = response.choices[0].message.content
console.log(`Response from meta llama 3: ${message}`)
})