Preserve thinking content for providers that require it (#8857)

Signed-off-by: jh-block <jhugo@block.xyz>
This commit is contained in:
jh-block
2026-05-15 12:36:25 +02:00
committed by GitHub
parent 401f8e86ba
commit 537eb23fb2
28 changed files with 1117 additions and 46 deletions
+3
View File
@@ -401,6 +401,7 @@ export type CustomProviderCreateRequest = {
requiresAuth: boolean;
catalogProviderId?: string | null;
basePath?: string | null;
preservesThinking?: boolean | null;
};
export type CustomProviderCreateResponse = {
@@ -463,6 +464,7 @@ export type CustomProviderConfigDto = {
basePath?: string | null;
apiKeyEnv?: string | null;
apiKeySet: boolean;
preservesThinking: boolean;
};
/**
@@ -482,6 +484,7 @@ export type CustomProviderUpdateRequest = {
requiresAuth: boolean;
catalogProviderId?: string | null;
basePath?: string | null;
preservesThinking?: boolean | null;
};
export type CustomProviderUpdateResponse = {
+10 -1
View File
@@ -368,6 +368,10 @@ export const zCustomProviderCreateRequest = z.object({
basePath: z.union([
z.string(),
z.null()
]).optional(),
preservesThinking: z.union([
z.boolean(),
z.null()
]).optional()
});
@@ -433,7 +437,8 @@ export const zCustomProviderConfigDto = z.object({
z.string(),
z.null()
]).optional(),
apiKeySet: z.boolean()
apiKeySet: z.boolean(),
preservesThinking: z.boolean()
});
export const zCustomProviderReadResponse = z.object({
@@ -468,6 +473,10 @@ export const zCustomProviderUpdateRequest = z.object({
basePath: z.union([
z.string(),
z.null()
]).optional(),
preservesThinking: z.union([
z.boolean(),
z.null()
]).optional()
});