Skip to content
Merged
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
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
providers:
type: openai
openai:
type: openai
base_url: https://api.openai.com/v1
model: gpt-4o
encoding: cl100k_base
Expand Down
5 changes: 2 additions & 3 deletions src/config/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const SearchConfigSchema = z.object({
});

const _OpenaiProviderConfigSchema = z.object({
type: z.literal("openai").default("openai"),
base_url: z.string().url().default("https://api.openai.com/v1"),
model: z.string().min(1),
encoding: z.string().optional(),
Expand All @@ -84,9 +85,7 @@ const _FalProviderConfigSchema = z.object({
credentials: FalCredentialsSchema,
});

export const ProvidersSchema = z.object({
type: z.enum(["openai"]).default("openai"),
}).passthrough();
export const ProvidersSchema = z.object({}).passthrough();

// --- Sandbox schemas ---

Expand Down