Input a variable in openai prompt

Is it possible to input a variable that holds a text in to prompt
something like:
b = “the quick brown fox jumps over the lazy dog” and then give and then prompt it to say b

import os
import openai

openai.api_key = os.getenv(“OPENAI_API_KEY”)
openai.Completion.create(
model=“text-davinci-003”,
prompt=“Say” b,
max_tokens=7,
temperature=0
)

Hey, welcome to the forum.

You can’t do this natively with just openai package, but you can with whatever programming language you’re using. What are you trying to accomplish?

Thanks for the welcome.
Im trying to input a large text file and then have it summarised or retold.
Thnx

Just be aware of the context limits for each model…

What language are you using for your software?

Im using python. Im trying to automate inputing the text in to openai model.
If i use playground and plain english it would look like this:

retell this text:
" John Travolta is an American actor. He came to public attention…"

Should work. I would give it a go…