You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
@ApiProperty({description: 'The unique identifier of the model.'})
15
+
@ApiProperty({description: 'The unique identifier of the model.',example: 'mistral'})
16
16
@IsString()
17
17
model: string;
18
18
19
-
@ApiProperty({description: 'The name of the model.'})
19
+
@ApiProperty({description: 'The name of the model.',example: 'mistral'})
20
20
@IsString()
21
21
name?: string;
22
22
23
23
@ApiProperty({
24
-
description: 'The URL sources from which the model downloaded or accessed.',
24
+
description: 'The URL sources from which the model downloaded or accessed.',example: ['https://huggingface.co/cortexso/mistral/tree/gguf'],
25
25
oneOf: [
26
26
{type: 'array',items: {type: 'string'}},
27
27
{$ref: getSchemaPath(ModelArtifactDto)},
@@ -33,15 +33,16 @@ export class CreateModelDto implements Partial<Model> {
33
33
// Model Input / Output Syntax
34
34
@ApiProperty({
35
35
description:
36
-
"A predefined text or framework that guides the AI model's response generation.",
36
+
"A predefined text or framework that guides the AI model's response generation.",example: `
37
+
You are an expert in {subject}. Provide a detailed and thorough explanation on the topic of {topic}.`
37
38
})
38
39
@IsOptional()
39
40
@IsString()
40
41
prompt_template?: string;
41
42
42
43
@ApiProperty({
43
44
description:
44
-
'Defines specific tokens or phrases that signal the model to stop producing further output.',
45
+
'Defines specific tokens or phrases that signal the model to stop producing further output.',example: ['End']
45
46
})
46
47
@IsOptional()
47
48
@IsArray()
@@ -58,38 +59,38 @@ export class CreateModelDto implements Partial<Model> {
58
59
max_tokens?: number;
59
60
60
61
@ApiProperty({
61
-
description: 'Sets probability threshold for more relevant outputs.',
62
+
description: 'Sets probability threshold for more relevant outputs.',example: 0.9
62
63
})
63
64
@IsOptional()
64
65
@IsNumber()
65
66
top_p?: number;
66
67
67
68
@ApiProperty({
68
-
description: "Influences the randomness of the model's output.",
69
+
description: "Influences the randomness of the model's output.",example: 0.7
69
70
})
70
71
@IsOptional()
71
72
@IsNumber()
72
73
temperature?: number;
73
74
74
75
@ApiProperty({
75
76
description:
76
-
'Modifies the likelihood of the model repeating the same words or phrases within a single output.',
77
+
'Modifies the likelihood of the model repeating the same words or phrases within a single output.',example: 0.5
77
78
})
78
79
@IsOptional()
79
80
@IsNumber()
80
81
frequency_penalty?: number;
81
82
82
83
@ApiProperty({
83
84
description:
84
-
'Reduces the likelihood of repeating tokens, promoting novelty in the output.',
85
+
'Reduces the likelihood of repeating tokens, promoting novelty in the output.',example: 0.6
85
86
})
86
87
@IsOptional()
87
88
@IsNumber()
88
89
presence_penalty?: number;
89
90
90
91
@ApiProperty({
91
92
description:
92
-
'Determines the format for output generation. If set to `true`, the output is generated continuously, allowing for real-time streaming of responses. If set to `false`, the output is delivered in a single JSON file.',
93
+
'Determines the format for output generation. If set to `true`, the output is generated continuously, allowing for real-time streaming of responses. If set to `false`, the output is delivered in a single JSON file.',example: true
example: `You are an expert in {subject}. Provide a detailed and thorough explanation on the topic of {topic}.`,
23
23
description:
24
24
"A predefined text or framework that guides the AI model's response generation.",
25
25
})
@@ -28,7 +28,7 @@ export class ModelDto implements Partial<Model> {
28
28
29
29
@ApiProperty({
30
30
type: [String],
31
-
example: [],
31
+
example: ["End"],
32
32
description:
33
33
'Defines specific tokens or phrases that signal the model to stop producing further output.',
34
34
})
@@ -116,6 +116,7 @@ export class ModelDto implements Partial<Model> {
116
116
117
117
@ApiProperty({
118
118
description: 'The prompt to use for internal configuration',
119
+
example: "You are an assistant with expert knowledge in {subject}. Please provide a detailed and accurate response to the following query: {query}. Ensure that your response is clear, concise, and informative."
0 commit comments