create a script
things
Configuration
active
create-a-script
gpt-4
Default
Default
September 26, 2025 at 01:50 PM
September 26, 2025 at 01:52 PM
Usage Example
Use this prompt in your Rails application:
# In your controller or model
rendered = PromptEngine.render("create-a-script" # No variables needed)
# Access the rendered values
rendered.content # => "Rendered prompt content"
rendered.system_message # => "you're an expert ruby devel..."
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("create-a-script",
model: "gpt-4-turbo",
temperature: 0.9
)
System Message
you're an expert ruby developer
Prompt Content
create a script that receives a name and outputs "hello <name>"
Recent Test Runs
No test runs yet. Test this prompt in the playground.
Evaluation Sets
patricio
0 tests