Skip to content

Commit

Permalink
Recent Update (#6)
Browse files Browse the repository at this point in the history
* solved issues

* solved issues
  • Loading branch information
Nishant Sharma authored Dec 25, 2023
1 parent 9a4ca4d commit d3209ac
Show file tree
Hide file tree
Showing 17 changed files with 151 additions and 1,741 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: npmnishantsharma
github: npmnishantsharma
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
**Desktop **
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
**Smartphone **
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
Add any other context about the problem here.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ A clear and concise description of what you want to happen.
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
Add any other context or screenshots about the feature request here.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ updates:
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
interval: "daily"
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- run: npm ci
- run: npm publish -access=public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
/lib
2 changes: 1 addition & 1 deletion Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
10) You have created a pull request, wait for a member to review and merge it : )
Lastly, GitHub/Git are vital in open-source contributions, to learn more about them check this blog
Lastly, GitHub/Git are vital in open-source contributions, to learn more about them check this blog
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2023 NishantApps

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
39 changes: 13 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,19 @@ npm i @nishantapps/node-gemini
### Usage

```js
const Gemini = require('@nishantapps/node-gemini');
import { Gemini } from '@nishantapps/node-gemini';

// Initialize Gemini with API keys and optional parameters
Gemini.initialize(apiKey, makersuiteKey, temperature, topP, topK, maxOutputTokens);
const question = "What is the meaning of life?";
Gemini.ask(question)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});

const config = {
key: 'YOUR_API_KEY',
apikey: 'YOUR_RAPIDAPI_KEY',
temperature: 0.7,
top_k: 10,
top_p: 0.8,
maxOutputTokens: 50,
};

Gemini.setConfig(config);

async function main() {
try {
const userQuestion = 'Why are you so advanced?';
const response = await Gemini.createText(userQuestion);
console.log("Response:", response);


} catch (error) {
console.error("Error:", error.message);
}
}

main();
```

### Faq:
Expand Down Expand Up @@ -78,4 +65,4 @@ Thanks goes to these wonderful people ([:hugs:](https://allcontributors.org/docs
</td>
</tr>
</tbody>
</table>
</table>
7 changes: 5 additions & 2 deletions Security.md → SECUTITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@

| Version | Supported |
| ------- | ------------------ |
| 1.0.0 | :white_check_mark: |
| 1.0.x ||
| 1.5. ||
|2.0.x||


## Reporting a Vulnerability

You can report issues in [github](https://github.com/nishantapps/node-bard/issues) or in [discord](https://discord.com/channels/1167478609905205430/1178375929928622080)

* there is no support for crossed versions
* there is no support for crossed versions
Loading

0 comments on commit d3209ac

Please sign in to comment.