Skip to content

feat!: getRecommend now returns Score[] with X-API-Version: 2#30

Merged
zhenghaoz merged 5 commits intogorse-io:masterfrom
zhangzhenghao:feat/get-recommend-with-scores
Mar 31, 2026
Merged

feat!: getRecommend now returns Score[] with X-API-Version: 2#30
zhenghaoz merged 5 commits intogorse-io:masterfrom
zhangzhenghao:feat/get-recommend-with-scores

Conversation

@zhangzhenghao
Copy link
Copy Markdown
Contributor

BREAKING CHANGE: getRecommend now returns Score[] instead of string[]

zhenghaoz added 5 commits March 31, 2026 20:39
- Add getRecommendWithScores method that returns Score[] with recommendation scores
- Add RecommendWithScoresOptions interface
- Uses X-API-Version: 2 header to return scores
- Related: gorse-io/gorse#1140
BREAKING CHANGE: getRecommend now returns Score[] instead of string[]
- Uses X-API-Version: 2 header to return scores
- Removed getRecommendWithScores method
- RecommendOptions is now the only interface for getRecommend
- No code references RecommendWithScoresOptions
@zhenghaoz zhenghaoz merged commit fc6e9d1 into gorse-io:master Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants