-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy pathenums.js
More file actions
82 lines (71 loc) · 1.51 KB
/
enums.js
File metadata and controls
82 lines (71 loc) · 1.51 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
/**
* Constants for PHP AI Client SDK Enums.
*
* @since 7.0.0
*
* @package WordPress
* @subpackage AI
*/
export const FileType = {
INLINE: 'inline',
REMOTE: 'remote',
};
export const MediaOrientation = {
SQUARE: 'square',
LANDSCAPE: 'landscape',
PORTRAIT: 'portrait',
};
export const FinishReason = {
STOP: 'stop',
LENGTH: 'length',
CONTENT_FILTER: 'content_filter',
TOOL_CALLS: 'tool_calls',
ERROR: 'error',
};
export const OperationState = {
STARTING: 'starting',
PROCESSING: 'processing',
SUCCEEDED: 'succeeded',
FAILED: 'failed',
CANCELED: 'canceled',
};
export const ToolType = {
FUNCTION_DECLARATIONS: 'function_declarations',
WEB_SEARCH: 'web_search',
};
export const ProviderType = {
CLOUD: 'cloud',
SERVER: 'server',
CLIENT: 'client',
};
export const MessagePartType = {
TEXT: 'text',
FILE: 'file',
FUNCTION_CALL: 'function_call',
FUNCTION_RESPONSE: 'function_response',
};
export const MessagePartChannel = {
CONTENT: 'content',
THOUGHT: 'thought',
};
export const Modality = {
TEXT: 'text',
DOCUMENT: 'document',
IMAGE: 'image',
AUDIO: 'audio',
VIDEO: 'video',
};
export const MessageRole = {
USER: 'user',
MODEL: 'model',
};
export const Capability = {
TEXT_GENERATION: 'text_generation',
IMAGE_GENERATION: 'image_generation',
TEXT_TO_SPEECH_CONVERSION: 'text_to_speech_conversion',
SPEECH_GENERATION: 'speech_generation',
MUSIC_GENERATION: 'music_generation',
VIDEO_GENERATION: 'video_generation',
EMBEDDING_GENERATION: 'embedding_generation',
CHAT_HISTORY: 'chat_history',
};