Preserve thinking content for providers that require it (#8857)
Signed-off-by: jh-block <jhugo@block.xyz>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user