chore: Code organization: completions follow all schema definitions
This commit is contained in:
parent
114ad51b54
commit
7ec0064157
1 changed files with 7 additions and 7 deletions
|
|
@ -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(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue