Skip to content

Commit b232faf

Browse files
authored
Fixed Tabs
1 parent 7a64f97 commit b232faf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -393,20 +393,20 @@ import {CreateMessageResult} from "@modelcontextprotocol/sdk/types.js";
393393

394394
// Async Function to send a sampling request to the LLM at top-level
395395
async function samplingExample(server: McpServer): Promise<CreateMessageResult> {
396-
const samplingText = "Text prompt to send to LLM";
397-
const result = await McpServer.server.createMessage(
398-
{
399-
messages : [{
400-
role: "user",
401-
content: {
402-
text: samplingText,
403-
type: "text"
404-
}
405-
}],
406-
maxTokens: 1000
407-
}
408-
);
409-
return result;
396+
const samplingText = "Text prompt to send to LLM";
397+
const result = await McpServer.server.createMessage(
398+
{
399+
messages : [{
400+
role: "user",
401+
content: {
402+
text: samplingText,
403+
type: "text"
404+
}
405+
}],
406+
maxTokens: 1000
407+
}
408+
);
409+
return result;
410410
}
411411

412412
// Sampling request just after connecting to MCP Client

0 commit comments

Comments
 (0)