faetalize / zodiac Goto Github PK
View Code? Open in Web Editor NEWA ⚡lightweight⚡ frontend for Google's Gemini Pro.
Home Page: https://faetalize.github.io/zodiac/
License: GNU General Public License v3.0
A ⚡lightweight⚡ frontend for Google's Gemini Pro.
Home Page: https://faetalize.github.io/zodiac/
License: GNU General Public License v3.0
async function run(input){
//..
}
//..
//changes to the event handler
sendMessageButton.addEventListener("click", () => {
run(...);
});
Personalities dont save after refresh like api key and token do
The features of this UI could be used to interact with other LLMs, such as GPT, and self hosted ones.
Is that a feature you'd like to see?
https://abhaykoul-webscout1.hf.space/search this API URL will search 10 results from web if limit is not set, if you want you can you this API in your code
const https = require('https');
const readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});
readline.question('Enter your search query: ', (query) => {
const url = "https://abhaykoul-webscout1.hf.space/search";
const payload = JSON.stringify({ query: query, limit: 5 }); // Set limit to 5
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Content-Length': Buffer.byteLength(payload)
}
};
const req = https.request(url, options, (res) => {
let data = '';
res.on('data', (chunk) => {
data += chunk;
});
res.on('end', () => {
try {
const parsedData = JSON.parse(data);
console.log(parsedData);
// Process the data here
} catch (e) {
console.error('Error parsing JSON:', e);
}
});
});
req.on('error', (e) => {
console.error('There was a problem with the request:', e.message);
});
req.write(payload);
req.end();
readline.close();
});
Currently, it's hacky and hardcoded. It doesnt increase in height when the text wraps. Setting the height to scrollheight leads to uneven uncentered text.
currently, if you send html tags, they will be rendered and not escaped. that is a problem. one could include <script> tags or other harmful inputs and they will be added to the document
Approach to fix:
Uncaught (in promise) Error: [400 ] Please ensure that multiturn requests ends with a user role or a function response.
at E (index.mjs:66:1)
at async A (index.mjs:99:1)
Allow the user to start anew without refreshing the page.
Implement a check for empty textarea value and trigger an alert, early return
This project might benefit from decoupling the markup from the js, it grew too big and is somewhat unreadable.
a one file bundle can still be provided
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.