Last active
January 22, 2025 17:56
-
-
Save sbatson5/e434b88425fe3d3c813969aad92a9191 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client = OpenAI::Client.new | |
response = client.chat( | |
parameters: { | |
model: 'gpt-4o', # Required. | |
response_format: { type: 'json_object' }, | |
messages: [{ role: 'user', content: content }], # Required. | |
temperature: 0.7 | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment