Skip to content

Commit 3388c6d

Browse files
authored
add doc for param to fix sonar issue (#1036)
1 parent e47a0ac commit 3388c6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/features/chatgpt/ChatGptService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public ChatGptService(Config config) {
8585
* Prompt ChatGPT with a question and receive a response.
8686
*
8787
* @param question The question being asked of ChatGPT. Max is {@value MAX_TOKENS} tokens.
88+
* @param context The category of asked question, to set the context(eg. Java, Database, Other
89+
* etc).
8890
* @return partitioned response from ChatGPT as a String array.
8991
* @see <a href="https://platform.openai.com/docs/guides/chat/managing-tokens">ChatGPT
9092
* Tokens</a>.

0 commit comments

Comments
 (0)