Skip to content

Commit

Permalink
feat: Make model parameter optional in GitCommitParamsSchema and Star…
Browse files Browse the repository at this point in the history
…tChatParamsSchema

This change makes the `model` parameter optional in both `GitCommitParamsSchema` and `StartChatParamsSchema`. This allows the application to function without requiring a specific model to be defined upfront, potentially allowing for a default model to be used if no model is provided.
  • Loading branch information
yukimemi committed Feb 4, 2025
1 parent 23fd0cf commit 4be5c19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions denops/futago/dispatcher/git_commit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// =============================================================================
// File : git_commit.ts
// Author : yukimemi
// Last Change : 2024/12/30 15:40:29.
// Last Change : 2025/02/05 00:26:42.
// =============================================================================

import * as fn from "jsr:@denops/std@7.4.0/function";
Expand All @@ -13,7 +13,7 @@ import { SafetySettingsSchema } from "../schema/safety_settings.ts";
import { z } from "npm:zod@3.24.1";

export const GitCommitParamsSchema = z.object({
model: z.string(),
model: z.string().optional(),
db: z.instanceof(Deno.Kv),
prompt: z.string().optional(),
safetySettings: SafetySettingsSchema.optional(),
Expand Down
4 changes: 2 additions & 2 deletions denops/futago/dispatcher/start_chat.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// =============================================================================
// File : start_chat.ts
// Author : yukimemi
// Last Change : 2024/12/30 15:47:23.
// Last Change : 2025/02/05 00:25:56.
// =============================================================================

import * as batch from "jsr:@denops/std@7.4.0/batch";
Expand All @@ -18,7 +18,7 @@ import { getNow } from "../util.ts";
import { z } from "npm:zod@3.24.1";

export const StartChatParamsSchema = z.object({
model: z.string(),
model: z.string().optional(),
db: z.instanceof(Deno.Kv),
chatDir: z.string(),
opener: OpenerSchema,
Expand Down

0 comments on commit 4be5c19

Please sign in to comment.