bes-js / herc.ai Goto Github PK
View Code? Open in Web Editor NEWA powerful library for interacting with the Herc.ai API.
Home Page: https://www.npmjs.com/package/hercai
License: GNU General Public License v3.0
A powerful library for interacting with the Herc.ai API.
Home Page: https://www.npmjs.com/package/hercai
License: GNU General Public License v3.0
Except for the gemini model, all other models return[ { status: 404, message: 'Prompt Error!' }](status: 404).
What?🙂
I'm trying to run the simple example in the readme file.
/* Importing The Package */
const { Hercai } = require('hercai');
const herc = new Hercai();
/* Available Models */
/* "v2" , "beta" , "v3-beta" */
/* Default Model; "v2" */
herc.question({model:"v2",content:"hi, how are you?"}).then(response => {
console.log(response.reply);
/* The module will reply based on the message! */
});
I get Error: Request failed with status code 500
Are there temp issues? Does it usually work? Should i try later?
Hello, how can I able to resume the conversation.
Hello, can you help me for my commercial chatbot , just i wanna do some personalization on the params to the api. So i just know if i can have my own api server like yours on render? Pls
How to resolve this error cause I always get it on my app.
I keep getting this error when using the NPM package on a question. Code is funcitoning 100%, I'm sure.
error - Error: Error: Request failed with status code 500
at Hercai.question (node_modules\hercai\hercai.js:42:7)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async summarizeTranscript (webpack-internal:///(api)/./src/pages/api/summarize.ts:62:22)
at async handler (webpack-internal:///(api)/./src/pages/api/summarize.ts:95:21)
at async Object.apiResolver (node_modules\next\dist\server\api-utils\node.js:363:9)
at async DevServer.runApi (node_modules\next\dist\server\next-server.js:488:9)
at async Object.fn (node_modules\next\dist\server\next-server.js:750:37)
at async Router.execute (node_modules\next\dist\server\router.js:253:36)
at async DevServer.run (node_modules\next\dist\server\base-server.js:384:29)
at async DevServer.run (node_modules\next\dist\server\dev\next-dev-server.js:741:20)
at async DevServer.handleRequest (node_modules\next\dist\server\base-server.js:322:20) {
page: '/api/summarize'
}```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.