Skip to content

Commit

Permalink
Merge branch 'main' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
railsstudent committed Mar 3, 2024
2 parents 9859d02 + 92139f3 commit 31a82f0
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,25 @@ Call Gemini REST API to generate text from text input

Go to https://aistudio.google.com/app/apikey to create an API key for a new or existing Google Cloud project

# Replace API Key
# Replace the API Key

- Go to src/app/gemini/gemini.provider.ts
- (first time) chmod a+x ./generate-config-file.sh
- execute the shell script to generate the API key in src/assets/config.json

```typescript
{
provide: GEMINI_API_KEY,
useValue: '<api key>',
},
```sh
./generate-config-file.sh <Gemini api key>
```

- Replace &lt;api key&gt; with the actual Gemini API Key
# Compile codes to deploy to github page

- switch to gh-pages branch
- (first time) chmod a+x ./deploy-github-page.sh
- execute the shell script to compiles to docs/ folder

```sh
./deploy-github-page.sh <Gemini api key>
```
- commit and push the codes the remote repository

## Development server

Expand Down

0 comments on commit 31a82f0

Please sign in to comment.