Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/read me update #8

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 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,3 +116,4 @@ Verify API functionality:
Use the endpoints mentioned in the Endpoints section to verify functionality and interaction with WordPress APIs and
Vertex AI.


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);
}
}
Loading