-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
109 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
backend/src/main/java/com/example/BriefMe/properties/VertexAIProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.example.BriefMe.properties; | ||
|
||
import lombok.Getter; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Getter | ||
public class VertexAIProperties { | ||
|
||
@Value("${google.vertex-ai.project}") | ||
String project; | ||
|
||
@Value("${google.vertex-ai.location}") | ||
String location; | ||
|
||
@Value("${google.vertex-ai.publisher}") | ||
String publisher; | ||
|
||
@Value("${google.vertex-ai.model}") | ||
String model; | ||
|
||
@Value("${google.vertex-ai.model.temperature}") | ||
Double temperature; | ||
|
||
@Value("${google.vertex-ai.model.max-output-token}") | ||
Integer maxOutputToken; | ||
|
||
@Value("${google.vertex-ai.model.top-p}") | ||
Double topP; | ||
|
||
@Value("${google.vertex-ai.model.top-k}") | ||
Integer topK; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
|
||
@Data | ||
@AllArgsConstructor | ||
public class VertexAIPrompt { | ||
public class VertexAIData { | ||
String prompt; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters