mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-25 15:25:15 +02:00
chore: Code organization: completions follow all schema definitions
This commit is contained in:
@@ -62,13 +62,6 @@ const SampleLLMSchema = z.object({
|
|||||||
.describe("Maximum number of tokens to generate"),
|
.describe("Maximum number of tokens to generate"),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Example completion values
|
|
||||||
const EXAMPLE_COMPLETIONS = {
|
|
||||||
style: ["casual", "formal", "technical", "friendly"],
|
|
||||||
temperature: ["0", "0.5", "0.7", "1.0"],
|
|
||||||
resourceId: ["1", "2", "3", "4", "5"],
|
|
||||||
};
|
|
||||||
|
|
||||||
const GetTinyImageSchema = z.object({});
|
const GetTinyImageSchema = z.object({});
|
||||||
|
|
||||||
const AnnotatedMessageSchema = z.object({
|
const AnnotatedMessageSchema = z.object({
|
||||||
@@ -119,6 +112,13 @@ enum PromptName {
|
|||||||
RESOURCE = "resource_prompt",
|
RESOURCE = "resource_prompt",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Example completion values
|
||||||
|
const EXAMPLE_COMPLETIONS = {
|
||||||
|
style: ["casual", "formal", "technical", "friendly"],
|
||||||
|
temperature: ["0", "0.5", "0.7", "1.0"],
|
||||||
|
resourceId: ["1", "2", "3", "4", "5"],
|
||||||
|
};
|
||||||
|
|
||||||
export const createServer = () => {
|
export const createServer = () => {
|
||||||
const server = new Server(
|
const server = new Server(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user