Skip to content

Commit

Permalink
fix(config): add descriptions to JSON schema properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Nov 26, 2024
1 parent 161c117 commit 1f99cd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types/plugin-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { StaticDecode, Type as T } from "@sinclair/typebox";
*/

export const pluginSettingsSchema = T.Object({
model: T.String({ default: "o1-mini" }),
openAiBaseUrl: T.Optional(T.String()),
similarityThreshold: T.Number({ default: 0.9 }),
maxTokens: T.Number({ default: 10000 }),
model: T.String({ default: "o1-mini", description: "The LLM model you wish to use" }),
openAiBaseUrl: T.Optional(T.String({ description: "The base URL for the OpenAI API" })),
similarityThreshold: T.Number({ default: 0.9, description: "When fetching embeddings context, the similarity threshold to use (1- similarityThreshold)" }),
maxTokens: T.Number({ default: 10000, description: "The max completion tokens you want to the model to generate" }),
});

export type PluginSettings = StaticDecode<typeof pluginSettingsSchema>;

0 comments on commit 1f99cd5

Please sign in to comment.