LLM Proxy
Fetch Deployed Prompt
LLM Proxy
Fetch Deployed Prompt
Given a deployment_id, fetches the deployed prompt and its details. Can be optionally used to fill-in the templated prompt with provided inputs.
POST
/
api
/
parea
/
v1
/
deployed-prompt
p = Parea(api_key="PAREA_API_KEY") # replace with your API key
def main() -> UseDeployedPromptResponse:
return p.get_prompt(
UseDeployedPrompt(
deployment_id="p-qZrnFesaeCpqcXJ_yL3wi",
llm_inputs={"x": "Python", "y": "Flask"},
)
)
{
"deployment_id": "p-qZrnFesaeCpqcXJ_yL3wi",
"functions": [],
"model": "gpt-4o-mini",
"model_params": {
"frequency_penalty": 0,
"presence_penalty": 0,
"temp": 0.5,
"top_p": 1
},
"name": "hello world",
"prompt": {
"inputs": {
"x": "Python",
"y": "Flask"
},
"messages": [
{
"content": "I want a Hello World program in Python. Using the Flask framework.",
"role": "user"
}
],
"raw_messages": [
{
"content": "I want a Hello World program in {{x}}. Using the {{y}} framework.",
"role": "user"
}
]
},
"provider": "openai",
"version_number": 1
}
p = Parea(api_key="PAREA_API_KEY") # replace with your API key
def main() -> UseDeployedPromptResponse:
return p.get_prompt(
UseDeployedPrompt(
deployment_id="p-qZrnFesaeCpqcXJ_yL3wi",
llm_inputs={"x": "Python", "y": "Flask"},
)
)
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
p = Parea(api_key="PAREA_API_KEY") # replace with your API key
def main() -> UseDeployedPromptResponse:
return p.get_prompt(
UseDeployedPrompt(
deployment_id="p-qZrnFesaeCpqcXJ_yL3wi",
llm_inputs={"x": "Python", "y": "Flask"},
)
)
{
"deployment_id": "p-qZrnFesaeCpqcXJ_yL3wi",
"functions": [],
"model": "gpt-4o-mini",
"model_params": {
"frequency_penalty": 0,
"presence_penalty": 0,
"temp": 0.5,
"top_p": 1
},
"name": "hello world",
"prompt": {
"inputs": {
"x": "Python",
"y": "Flask"
},
"messages": [
{
"content": "I want a Hello World program in Python. Using the Flask framework.",
"role": "user"
}
],
"raw_messages": [
{
"content": "I want a Hello World program in {{x}}. Using the {{y}} framework.",
"role": "user"
}
]
},
"provider": "openai",
"version_number": 1
}