Skip to content

Commit

Permalink
Remove commented out things
Browse files Browse the repository at this point in the history
  • Loading branch information
kathy-t committed Sep 26, 2024
1 parent 2e6c62e commit 252a685
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public AnthropicClaudeModel(AIModelType anthropicModel) {

@Override
public Optional<AIResponseInfo> generateTopic(String prompt) {
//String prompt = "Summarize the " + entryType + " in one sentence that starts with a verb in the <summary> tags. Use a maximum of 150 characters.\n<content>" + descriptorFile.getContent() + "</content>";
if (estimateTokens(prompt) > getMaxContextLength()) {
prompt = prompt.substring(0, getMaxContextLength());

Check warning on line 34 in topicgenerator/src/main/java/io/dockstore/topicgenerator/helper/AnthropicClaudeModel.java

View check run for this annotation

Codecov / codecov/patch

topicgenerator/src/main/java/io/dockstore/topicgenerator/helper/AnthropicClaudeModel.java#L34

Added line #L34 was not covered by tests
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public OpenAIModel(String openaiApiKey, AIModelType aiModelType) {
*/
@Override
public Optional<AIResponseInfo> generateTopic(String prompt) {
// A character limit is specified but ChatGPT doesn't follow it strictly
//final String systemPrompt = "Summarize the " + entryType + " in one sentence that starts with a verb in the <summary> tags. Use a maximum of 150 characters.";
// Chat completion API calls include additional tokens for message-based formatting. Calculate how long the descriptor content can be and truncate if needed
ChatMessage userMessage = new ChatMessage(ChatMessageRole.USER.value(), prompt);
boolean isPromptTruncated = false;

Check warning on line 46 in topicgenerator/src/main/java/io/dockstore/topicgenerator/helper/OpenAIModel.java

View check run for this annotation

Codecov / codecov/patch

topicgenerator/src/main/java/io/dockstore/topicgenerator/helper/OpenAIModel.java#L45-L46

Added lines #L45 - L46 were not covered by tests
Expand Down

0 comments on commit 252a685

Please sign in to comment.