Configuration
active
sum
gpt-4
Default
Default
September 26, 2025 at 02:36 PM
September 26, 2025 at 05:33 PM
Parameters
a
string
Required
b
string
Required
arr
array
Required
Usage Example
Use this prompt in your Rails application:
# In your controller or model
rendered = PromptEngine.render("sum",
a: "value1",
b: "value2",
arr: "value3")
# Access the rendered values
rendered.content # => "Rendered prompt content"
rendered.system_message # => "System message"
rendered.model # => "gpt-4"
rendered.temperature # => 0.7
rendered.max_tokens # => 1000
# Direct integration with OpenAI
client = OpenAI::Client.new(access_token: ENV["OPENAI_API_KEY"])
response = rendered.execute_with(client)
# Or use explicit parameters
response = client.chat(parameters: rendered.to_openai_params)
# With additional options (tools, functions, etc.)
response = rendered.execute_with(client,
tools: [...],
response_format: { type: "json_object" }
)
# Override model settings at runtime
rendered = PromptEngine.render("sum",
a: "value1",
b: "value2",
arr: "value3",
model: "gpt-4-turbo",
temperature: 0.9
)
Prompt Content
solve {{a}} + {{b}} y array {{arr}}
Recent Test Runs
No test runs yet. Test this prompt in the playground.
Evaluation Sets
eval 1
1 test