Get system message
Gets the structure of a system message for use in a request
- Parameters
- Advanced call ?
Function GetSystemMessage(Val Text) ExportReturn GetMessageStructure("system", Text);EndFunction
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Text | --text | String | ✔ | Message text |
Returns
Structure Of KeyAndValue - Fields structure
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Is a shorthand for the function GetMessageStructure
1C:Enterprise/OneScript code example
Result = OPI_OpenAI.GetSystemMessage("What is 1C:Enterprise?");
- Bash
- CMD/Bat
oint openai GetSystemMessage \
--text "What is 1C:Enterprise?"
oint openai GetSystemMessage ^
--text "What is 1C:Enterprise?"
Result
"{\r\n \"role\": \"system\",\r\n \"content\": \"What is 1C:Enterprise?\"\r\n}"