st2udio
2023-03-26 22:09:14 +08:00
刚刚又完成了一段代码优化:
Refactor searchVectors return type and simplify API response
- Change the return type of searchVectors to *models.GraphQLResponse
- Update searchSimilarTextsHandler to handle the new return type
- Add simplifyResult function to convert complex GraphQL response to a simplified JSON structure
- Update the README to reflect the new simplified response format for the "Search Similar Texts" API
Signed-off-by: ChatGPT <assistant@openai.com>