Get system message
Gets the structure of a system message for use in a request
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
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
{
"role": "system",
"content": "What is 1C:Enterprise?"
}