mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
* fix(omp): limit thinking levels to model's reported efforts The omp provider exposed all six thinking levels (off/minimal/low/ medium/high/xhigh) whenever a model had reasoning enabled, ignoring the per-model thinking config that omp reports via RPC. The OmpModelSchema didn't parse the thinking field at all, so the model's efforts subset and defaultLevel were discarded. Parse model.thinking (efforts/defaultLevel/effortMap) in OmpModelSchema and filter the thinking options in mapOmpModel to only the model's reported efforts. The default is the reported defaultLevel when it's in the filtered set, otherwise the first (lowest) effort. Older omp versions that don't report thinking.efforts keep getting the full set. Also fix createSession to not hardcode 'medium' as the thinking fallback when the client doesn't send a thinkingOptionId — pass undefined so omp uses its own model default instead of overriding it with a level that may not even be in the model's effort set. * test(omp): drop --thinking medium from provider-registry launch assertions The thinking-level filtering PR changed createSession to pass undefined instead of "medium" when no thinking option is selected, so buildOmpLaunch no longer emits --thinking. agent.test.ts was updated but provider-registry.test.ts still expected --thinking medium in two OMP launch assertions, failing server-tests on ubuntu and windows. --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>