Fix for API Error 400: "Reasoning is mandatory for this endpoint and cannot be disabled."#1396
Open
bryzgaloff wants to merge 2 commits into
Open
Conversation
bryzgaloff
commented
May 16, 2026
| > | ||
| <Command className="[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"> | ||
| {children} | ||
| {children as any} |
Author
There was a problem hiding this comment.
Without this fix, I got an error running npm run build:
$ tsc -b && vite build
src/components/ui/command.tsx:53:11 - error TS2322: Type 'ReactNode' is not assignable to type '((string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal) & (string | ... 5 more ... | Iterable<...>)) | null | undefined'.
Type 'bigint' is not assignable to type '((string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal) & (string | ... 5 more ... | Iterable<...>)) | null | undefined'.
53 {children}
~~~~~~~~~~
../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19.2.14_react-dom_c7cada531f0aaf30a175ae441f7fe8bc/node_modules/cmdk/dist/index.d.ts:5:5
5 children?: React.ReactNode;
~~~~~~~~
The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & Children & Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }, "key" | ... 1 more ... | keyof HTMLAttributes<...>> & { ...; } & RefAttributes<...>'
Found 1 error.
I could not test the fix without this edit. Please let me know if it has to be removed from the PR.
bryzgaloff
commented
May 16, 2026
Comment on lines
+191
to
+195
| if (request.thinking && request.thinking.type === "enabled") { | ||
| result.reasoning = { | ||
| effort: getThinkLevel(request.thinking.budget_tokens), | ||
| // max_tokens: request.thinking.budget_tokens, | ||
| enabled: request.thinking.type === "enabled", | ||
| enabled: true, |
Author
There was a problem hiding this comment.
These are based on t-j-thomas@d897c9d and work for me.
Author
|
❤️❤️❤️ If you find this PR useful, I kindly ask for you support: please star https://github.com/bryzgaloff/airflow-clickhouse-plugin and/or subscribe to me at Threads or Medium. |
Contributor
Yikes. At this point, you can buy Github stars on Fiverr 😂 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix for #1238