Skip to content

Conversation

@lzell
Copy link
Owner

@lzell lzell commented Sep 3, 2025

Example of passing a safety identifier:

let requestBody = OpenAICreateResponseRequestBody(
    input: .text("hello world"),
    model: "gpt-4.1-mini",
    safetyIdentifier: "123",
)

let response = try await openAIService.createResponse(
    requestBody: requestBody,
    secondsToWait: 120
)
print(response.outputText)

@lzell lzell merged commit c7d9ca7 into main Sep 3, 2025
@lzell
Copy link
Owner Author

lzell commented Sep 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants