mirror of
https://github.com/github/codeql.git
synced 2026-06-30 17:15:34 +02:00
Python: apply codeql query format to prompt-injection framework files
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -93,7 +93,11 @@ module OpenAI {
|
||||
/** Gets the message dictionaries passed as a list to `responses.create`. */
|
||||
private API::Node responsesMessage() {
|
||||
result =
|
||||
classRef().getMember("responses").getMember("create").getKeywordParameter("input").getASubscript()
|
||||
classRef()
|
||||
.getMember("responses")
|
||||
.getMember("create")
|
||||
.getKeywordParameter("input")
|
||||
.getASubscript()
|
||||
}
|
||||
|
||||
/** Gets the content sink of a message dictionary, including the `text` of structured content. */
|
||||
|
||||
@@ -25,7 +25,11 @@ module OpenRouter {
|
||||
/** Gets the message dictionaries passed to `chat.send`. */
|
||||
private API::Node chatMessage() {
|
||||
result =
|
||||
clientRef().getMember("chat").getMember("send").getKeywordParameter("messages").getASubscript()
|
||||
clientRef()
|
||||
.getMember("chat")
|
||||
.getMember("send")
|
||||
.getKeywordParameter("messages")
|
||||
.getASubscript()
|
||||
}
|
||||
|
||||
/** Gets the content sink of a message dictionary, including the `text` of structured content. */
|
||||
|
||||
Reference in New Issue
Block a user