Arguments
string
required
string
required
object
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
completion.variable(key: str, value: str, metadata: Optional[Dict] = None) -> Tag:
from baserun import OpenAI
def example():
client = OpenAI()
city = input()
completion = client.chat.completions.create(
model="gpt-4o",
temperature=0.7,
messages=[
{
"role": "user",
"content": f"What are three activities to do in {city}?"
}
],
)
completion.variable("city", city)