Skip to content

Commit c522fdc

Browse files
committed
Rename to createOrGetVectorStore
Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>
1 parent aaf564a commit c522fdc

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public Optional<String> uploadFileIfNotExists(Path filePath, FilePurpose purpose
162162
return Optional.of(id);
163163
}
164164

165-
public String createOrGetXkcdVectorStore(String fileId) {
165+
public String createOrGetVectorStore(String fileId) {
166166
List<VectorStore> vectorStores = openAIClient.vectorStores()
167167
.list()
168168
.items()

application/src/main/java/org/togetherjava/tjbot/features/xkcd/XkcdCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ private void handleRelevantXkcd(SlashCommandInteractionEvent event) {
124124
event.deferReply().queue();
125125

126126
String xkcdComicsFileId = xkcdRetriever.getXkcdUploadedFileId();
127-
String xkcdVectorStore =
128-
chatGptService.createOrGetXkcdVectorStore(xkcdComicsFileId);
127+
String xkcdVectorStore = chatGptService.createOrGetVectorStore(xkcdComicsFileId);
129128
FileSearchTool fileSearch =
130129
FileSearchTool.builder().vectorStoreIds(List.of(xkcdVectorStore)).build();
131130

0 commit comments

Comments
 (0)