Skip to content

feat!: get_recommend now returns List[Score] with X-API-Version: 2#10

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

feat!: get_recommend now returns List[Score] with X-API-Version: 2#10
zhenghaoz merged 4 commits intogorse-io:mainfrom
zhangzhenghao:feat/get-recommend-with-scores

Conversation

@zhangzhenghao
Copy link
Copy Markdown
Contributor

BREAKING CHANGE: get_recommend now returns List[Score] instead of List[str]

zhenghaoz added 4 commits March 31, 2026 20:35
- Add Score class for scored recommendations
- Add get_recommend_with_scores method to Gorse (sync) and AsyncGorse (async)
- Uses X-API-Version: 2 header to return scores
- Related: gorse-io/gorse#1140
BREAKING CHANGE: get_recommend now returns List[Score] instead of List[str]
- Uses X-API-Version: 2 header to return scores
- Removed old get_recommend that returned List[str]
@zhenghaoz zhenghaoz merged commit 94d7fca into gorse-io:main Mar 31, 2026
4 checks 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