-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathconstants.ts
More file actions
19 lines (17 loc) · 755 Bytes
/
constants.ts
File metadata and controls
19 lines (17 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export const GOOGLE_GENAI_INTEGRATION_NAME = 'Google_GenAI';
// https://ai.google.dev/api/rest/v1/models/generateContent
// https://ai.google.dev/api/rest/v1/chats/sendMessage
// https://googleapis.github.io/js-genai/release_docs/classes/models.Models.html#generatecontentstream
// https://googleapis.github.io/js-genai/release_docs/classes/chats.Chat.html#sendmessagestream
export const GOOGLE_GENAI_INSTRUMENTED_METHODS = [
'models.generateContent',
'models.generateContentStream',
'models.embedContent',
'chats.create',
'sendMessage',
'sendMessageStream',
] as const;
// Constants for internal use
export const GOOGLE_GENAI_SYSTEM_NAME = 'google_genai';
export const CHATS_CREATE_METHOD = 'chats.create';
export const CHAT_PATH = 'chat';