Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ModelPreferences reports an invalid speedPriority as costPriority

Open Beginner friendly
#1,081 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
kotlin
Domain
api

Research direction

Locate the ModelPreferences validation and its existing tests, then compare the speedPriority and costPriority error-message checks. Update the incorrect message and add an assertion that an invalid speedPriority reports speedPriority; run the relevant ModelPreferences tests to verify the result.

Written by the indexing model from the issue text.

Description

bug P3

ModelPreferences validates speedPriority, but the error message says costPriority must be in 0.0 <= x <= 1.0 value range: it was copied from the costPriority check. The tests only assert the exception type.

Expected: the message names speedPriority, and a test checks it.

Dominant language
Kotlin
Stars
1.5k
Forks
261
Avg merge
2d 9h
Merged PRs (30d)
36

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelcontextprotocol/kotlin-sdk

All issues in modelcontextprotocol/kotlin-sdk

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.