Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/types/src/provider-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ import { toolUseStylesSchema } from "./kilocode/native-function-calling.js"

export const DEFAULT_CONSECUTIVE_MISTAKE_LIMIT = 3

/**
* Profile Type System
*/

export const profileTypes = ["chat", "autocomplete"] as const
export const profileTypeSchema = z.enum(profileTypes)
export type ProfileType = z.infer<typeof profileTypeSchema>

// Default value constant
export const DEFAULT_PROFILE_TYPE: ProfileType = "chat"

/**
* DynamicProvider
*
Expand Down Expand Up @@ -172,6 +183,7 @@ export const providerSettingsEntrySchema = z.object({
name: z.string(),
apiProvider: providerNamesSchema.optional(),
modelId: z.string().optional(),
profileType: profileTypeSchema.optional(),
})

export type ProviderSettingsEntry = z.infer<typeof providerSettingsEntrySchema>
Expand All @@ -181,6 +193,7 @@ export type ProviderSettingsEntry = z.infer<typeof providerSettingsEntrySchema>
*/

const baseProviderSettingsSchema = z.object({
profileType: profileTypeSchema.optional(),
includeMaxTokens: z.boolean().optional(),
diffEnabled: z.boolean().optional(),
todoListEnabled: z.boolean().optional(),
Expand Down
Loading
Loading