Skip to content

Commit

Permalink
chore: config examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Nov 27, 2024
1 parent 2ee15aa commit 4b9bf23
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/types/plugin-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ import { StaticDecode, Type as T } from "@sinclair/typebox";
*/

export const pluginSettingsSchema = T.Object({
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" })),
model: T.String({
default: "o1-mini",
description: "The LLM model you wish to use",
examples: ["openai/gpt-4o", "openai/o1-mini"]
}),
openAiBaseUrl: T.Optional(T.String({
description: "The base URL for the OpenAI API",
examples: ["https://openrouter.ai/api/v1", "https://api.openai.com/v1"]
})),
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" }),
});
Expand Down

0 comments on commit 4b9bf23

Please sign in to comment.