Skip to content

Commit

Permalink
Documentation Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
SaurabhDhotreknoldus committed Jun 24, 2024
1 parent a582b48 commit c97b5d4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ Before starting, ensure you have the following installed and configured:
- **Google Cloud SDK**: Install the Google Cloud SDK and authenticate with your Google Cloud account. Follow the
instructions [here](https://cloud.google.com/sdk/docs/install). Then, log in to Google Cloud locally using the
command: ```gcloud auth application-default login```


## Tech Stack

| Technology | Version |
|------------------|---------|
| Java | 21 |
| Spring Boot | 3.3.x |
| Angular | 16 |
| Node.js | 18.x |
| Maven | 3.9+ |
| Google Cloud SDK | Latest |
| Vertex AI | Latest |
| WordPress API | Latest |


## Setup Instructions

Expand Down Expand Up @@ -101,13 +116,4 @@ Verify API functionality:
Use the endpoints mentioned in the Endpoints section to verify functionality and interaction with WordPress APIs and
Vertex AI.

## Tech Stack
- Java: 21
- Spring Boot: 3.x
- Angular: 16
- Node.js: 18.x
- Maven: 3.9+
- Google Cloud SDK
- Vertex AI
- WordPress API

Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ public GenerativeModel geminiProVisionGenerativeModel(VertexAI vertexAI) {
return new GenerativeModel("gemini-1.0-pro-vision-001", vertexAI);
}

@Bean
public GenerativeModel geminiProGenerativeModel(VertexAI vertexAI) {
return new GenerativeModel("gemini-1.0-pro-vision-001", vertexAI);
}

@Bean
@SessionScope
public ChatSession chatSession(@Qualifier("geminiProGenerativeModel") GenerativeModel generativeModel) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ public class GeminiController {
public String fromBodyPost(@RequestBody String prompt) throws IOException {
GenerateContentResponse generateContentResponse = this.chatSession.sendMessage(prompt);
return ResponseHandler.getText(generateContentResponse);
// return new ResponseEntity<>("Hello World!", HttpStatus.OK);
}
}

0 comments on commit c97b5d4

Please sign in to comment.