-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathServiceConstants.cs
More file actions
87 lines (72 loc) · 3.65 KB
/
ServiceConstants.cs
File metadata and controls
87 lines (72 loc) · 3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
namespace MaIN.Services.Constants;
public static class ServiceConstants
{
public static class HttpClients
{
public const string ImageGenClient = "ImageGenClient";
public const string OpenAiClient = "OpenAiClient";
public const string GeminiClient = "GeminiClient";
public const string DeepSeekClient = "DeepSeekClient";
public const string GroqCloudClient = "GroqCloudClient";
public const string AnthropicClient = "AnthropicClient";
public const string ImageDownloadClient = "ImageDownloadClient";
public const string ModelContextDownloadClient = "ModelContextDownloadClient";
}
public static class ApiUrls
{
public const string OpenAiImageGenerations = "https://api.openai.com/v1/images/generations";
public const string OpenAiChatCompletions = "https://api.openai.com/v1/chat/completions";
public const string OpenAiModels = "https://api.openai.com/v1/models";
public const string GeminiImageGenerations =
"https://generativelanguage.googleapis.com/v1beta/openai/images/generations";
public const string GeminiOpenAiChatCompletions =
"https://generativelanguage.googleapis.com/v1beta/openai/chat/completions";
public const string GeminiModels = "https://generativelanguage.googleapis.com/v1beta/models";
public const string DeepSeekOpenAiChatCompletions = "https://api.deepseek.com/v1/chat/completions";
public const string DeepSeekModels = "https://api.deepseek.com/models";
public const string GroqCloudOpenAiChatCompletions = "https://api.groq.com/openai/v1/chat/completions";
public const string GroqCloudModels = "https://api.groq.com/openai/v1/models";
public const string AnthropicChatMessages = "https://api.anthropic.com/v1/messages";
public const string AnthropicModels = "https://api.anthropic.com/v1/models";
}
public static class Messages
{
public const string GeneratedImageContent = "Generated Image:";
public const string UnprocessedMessage = "Unprocessed";
}
public static class Properties
{
public const string PreProcessProperty = "Pre_Process";
public const string DisableCacheProperty = "DisableCache";
}
public static class Defaults
{
public const string ImageSize = "1024x1024";
public const int HttpImageModelTimeoutInMinutes = 5;
}
public static class Notifications
{
public const string ReceiveMessageUpdate = "ReceiveMessageUpdate";
}
public static class Roles
{
public const string Assistant = "assistant";
public const string User = "user";
public const string System = "system";
}
public static class Grammars
{
public const string DecisionGrammar = """
root ::= decision
decision ::= "{" ws "\"decision\":" ws boolean "," ws "\"certainty\":" ws certainty ws "}"
boolean ::= "true" | "false"
certainty ::= "0" | "0." [0-9] [0-9]? | "1" | "1.0" | "1.00"
ws ::= [ \t\n\r]*
""";
public const string KnowledgeGrammar = """
root ::= ws "[" ws (string (ws "," ws string)*)? ws "]"
string ::= "\"" [^"]* "\""
ws ::= [ \t\n\r]*
""";
}
}