Comments (3)
Ok cool so you don't need babel. You can do something like this as a work around -
const GeminiAPI = require('gemini-api');
const restClient = new GeminiAPI.default({ key, secret, sandbox: true });
const websocketClient = new GeminiAPI.default.WebsocketClient({ key, secret, sandbox: true });
from gemini-api-node.
I had to use default
to make it work
const GeminiAPI = require('gemini-api').default;
const restClient = new GeminiAPI({ key, secret, sandbox: false });
from gemini-api-node.
Hey guys (and anyone else who stumbles onto this issue). I haven't worked on this package in a while, but I decided recently to refurbish it a bit. I'm currently working on this branch: https://github.com/mjesuele/gemini-api-node/tree/mj/modernize-with-typescript.
It shouldn't take too much longer, and then it will be nice and modern (for now, anyway...)
from gemini-api-node.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gemini-api-node.