p = Parea(api_key="PAREA_API_KEY") # replace with your API keyresponse = p.completion( Completion( deployment_id="p-qZrnFesaeCpqcXJ_yL3wi", llm_inputs={"x": "Golang", "y": "Fiber"}, metadata={"purpose": "testing"}, ))
const p = new Parea("PAREA_API_KEY"); // replace with your API keyconst response = await p.completion({ deployment_id: "p-qZrnFesaeCpqcXJ_yL3wi", llm_inputs: {x: "Golang", y: "Fiber"}, metadata: {purpose: "testing"}});
curl --location 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/completion' \--header 'Content-Type: application/json' \--header 'x-api-key: PAREA_API_KEY' \--data '{ "end_user_identifier": "2596@gmail.com", "inputs": { "city": "New York" }, "llm_configuration": { "function_call": "auto", "functions": [ { "description": "Get the current weather in a given location.", "name": "get_current_weather", "parameters": { "properties": { "location": { "description": "The city and state, e.g. San Francisco, CA", "type": "string" }, "unit": { "enum": [ "celsius", "fahrenheit" ], "type": "string" } }, "required": [ "location" ], "type": "object" } } ], "messages": [ { "content": "What is the weather in New York", "role": "user" } ], "model": "gpt-4o-mini", "model_params": { "max_length": 500, "model": "gpt-4o-mini", "temp": 0 }, "provider": "openai" }, "metadata": { "purpose": "testing", "user_id": "user_2Q9afRAKe6SZrc3U7" }, "tags": [ "weather", "forecast" ]}'
Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request.
This endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.
POST
/
api
/
parea
/
v1
/
completion
p = Parea(api_key="PAREA_API_KEY") # replace with your API keyresponse = p.completion( Completion( deployment_id="p-qZrnFesaeCpqcXJ_yL3wi", llm_inputs={"x": "Golang", "y": "Fiber"}, metadata={"purpose": "testing"}, ))
const p = new Parea("PAREA_API_KEY"); // replace with your API keyconst response = await p.completion({ deployment_id: "p-qZrnFesaeCpqcXJ_yL3wi", llm_inputs: {x: "Golang", y: "Fiber"}, metadata: {purpose: "testing"}});
curl --location 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/completion' \--header 'Content-Type: application/json' \--header 'x-api-key: PAREA_API_KEY' \--data '{ "end_user_identifier": "2596@gmail.com", "inputs": { "city": "New York" }, "llm_configuration": { "function_call": "auto", "functions": [ { "description": "Get the current weather in a given location.", "name": "get_current_weather", "parameters": { "properties": { "location": { "description": "The city and state, e.g. San Francisco, CA", "type": "string" }, "unit": { "enum": [ "celsius", "fahrenheit" ], "type": "string" } }, "required": [ "location" ], "type": "object" } } ], "messages": [ { "content": "What is the weather in New York", "role": "user" } ], "model": "gpt-4o-mini", "model_params": { "max_length": 500, "model": "gpt-4o-mini", "temp": 0 }, "provider": "openai" }, "metadata": { "purpose": "testing", "user_id": "user_2Q9afRAKe6SZrc3U7" }, "tags": [ "weather", "forecast" ]}'
p = Parea(api_key="PAREA_API_KEY") # replace with your API keyresponse = p.completion( Completion( deployment_id="p-qZrnFesaeCpqcXJ_yL3wi", llm_inputs={"x": "Golang", "y": "Fiber"}, metadata={"purpose": "testing"}, ))
const p = new Parea("PAREA_API_KEY"); // replace with your API keyconst response = await p.completion({ deployment_id: "p-qZrnFesaeCpqcXJ_yL3wi", llm_inputs: {x: "Golang", y: "Fiber"}, metadata: {purpose: "testing"}});
curl --location 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/completion' \--header 'Content-Type: application/json' \--header 'x-api-key: PAREA_API_KEY' \--data '{ "end_user_identifier": "2596@gmail.com", "inputs": { "city": "New York" }, "llm_configuration": { "function_call": "auto", "functions": [ { "description": "Get the current weather in a given location.", "name": "get_current_weather", "parameters": { "properties": { "location": { "description": "The city and state, e.g. San Francisco, CA", "type": "string" }, "unit": { "enum": [ "celsius", "fahrenheit" ], "type": "string" } }, "required": [ "location" ], "type": "object" } } ], "messages": [ { "content": "What is the weather in New York", "role": "user" } ], "model": "gpt-4o-mini", "model_params": { "max_length": 500, "model": "gpt-4o-mini", "temp": 0 }, "provider": "openai" }, "metadata": { "purpose": "testing", "user_id": "user_2Q9afRAKe6SZrc3U7" }, "tags": [ "weather", "forecast" ]}'
This is the ID for a specific deployed prompt. You can find your deployed prompts on the Deployments tab. If a deployment_id is provided, Parea will fetch all of the associated configuration including model name, model parameters, and any associated functions. Any information provided on the llm_configuration field will be used instead of the associated deployed prompts fields.
If specified, this log and its entire associated trace will logged with this probability. Must be between 0 and 1 (incl.). Defaults to 1.0 (i.e., keeping all logs)
UUID of the log of the completion. Will be the same as the trace_id in the request if provided.
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Parea AI","colors":{"primary":"#9563FF","light":"#AE87FF","dark":"#0D001D"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/pareaai/3kurg3MZRrsWWk8t/logo/parea-light.png?fit=max\u0026auto=format\u0026n=3kurg3MZRrsWWk8t\u0026q=85\u0026s=c32fc81b38c3586ed7187a84b3e0c8d9","dark":"https://mintcdn.com/pareaai/3kurg3MZRrsWWk8t/logo/parea-dark.png?fit=max\u0026auto=format\u0026n=3kurg3MZRrsWWk8t\u0026q=85\u0026s=0c9b98a6abbc1a8b0851dda2467305d3"},"api":{"playground":{"display":"simple"},"mdx":{"server":"https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1","auth":{"method":"key","name":"x-api-key"}}},"background":{"decoration":null,"color":{"light":null,"dark":"#090014"}},"navbar":{"links":[{"label":"Discord","href":"https://discord.gg/p7CUwSKJD6"}],"primary":{"type":"button","label":"HomePage","href":"https://www.parea.ai/"}},"footer":{"socials":{"twitter":"https://twitter.com/PareaAI","github":"https://github.com/parea-ai","linkedin":"https://www.linkedin.com/company/parea-ai/"}},"integrations":{"posthog":{"apiKey":"phc_QJDW2uNYJGwIl7dXs4WLDWEuntie6Ye1TQRW9p3re18","apiHost":"https://eu.posthog.com"}},"navigation":{"global":{"anchors":[{"anchor":"Github","href":"https://github.com/parea-ai/parea-sdk","icon":"github"},{"anchor":"Discord","href":"https://discord.gg/p7CUwSKJD6","icon":"discord"},{"anchor":"Chat with Founders","href":"https://calendly.com/parea-ai/chat","icon":"phone"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pareaai","hasAudioNarration":false,"actualSubdomain":"pareaai","customDomains":["docs.parea.ai"],"gitSource":{"type":"github","owner":"parea-ai","repo":"parea-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e60a4c43fec466d7925c","collectionId":"662c90c1-bcb2-4744-a0d9-5f805b4d92b4","schemaVersion":"v2"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae91a1817875ca6d2a3d8fd:success","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Documentation","count":40},{"language":"default","tag":"Guides","count":33},{"language":"default","tag":"API Reference","count":22},{"language":"default","tag":"Blog","count":22},{"language":"default","tag":"Observability","count":11},{"language":"default","tag":"Integrations","count":7},{"language":"default","tag":"Experiments","count":5},{"language":"default","tag":"Tracing","count":5},{"language":"default","tag":"Manual Review","count":5},{"language":"default","tag":"Playground","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/llm-proxy/completion","slug":"/api-reference/llm-proxy/completion","pageMetadata":{"openapi":"post /api/parea/v1/completion","title":"Completion","description":"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request.\nThis endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.","href":"/api-reference/llm-proxy/completion"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request.\\nThis endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /api/parea/v1/completion","title":"Completion","description":"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request.\nThis endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.","href":"/api-reference/llm-proxy/completion"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,RequestExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);return _jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`python`,numberOfLines:`9`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`p `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Parea(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PAREA_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# replace with your API key`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` p.completion(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Completion(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` deployment_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"p-qZrnFesaeCpqcXJ_yL3wi\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` llm_inputs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Golang\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"y\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Fiber\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"purpose\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"testing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`typescript`,numberOfLines:`7`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Parea`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PAREA_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// replace with your API key`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` p`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`completion`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` deployment_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"p-qZrnFesaeCpqcXJ_yL3wi\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` llm_inputs:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`x:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Golang\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`y:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Fiber\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` metadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`purpose:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"testing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`58`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`58`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/completion'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-api-key: PAREA_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"end_user_identifier\": \"2596@gmail.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"inputs\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"city\": \"New York\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"llm_configuration\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"function_call\": \"auto\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"functions\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"Get the current weather in a given location.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"get_current_weather\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"parameters\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"location\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"The city and state, e.g. San Francisco, CA\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"string\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unit\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"enum\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"celsius\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fahrenheit\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"string\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"required\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"location\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"object\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"What is the weather in New York\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"user\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"gpt-4o-mini\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model_params\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_length\": 500,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"gpt-4o-mini\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"temp\": 0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"provider\": \"openai\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purpose\": \"testing\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\": \"user_2Q9afRAKe6SZrc3U7\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tags\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"weather\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"forecast\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /api/parea/v1/completion","title":"Completion","description":"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request.\nThis endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.","href":"/api-reference/llm-proxy/completion"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">p \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> Parea(\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">api_key\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PAREA_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># replace with your API key\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> p.completion(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> Completion(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> deployment_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"p-qZrnFesaeCpqcXJ_yL3wi\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> llm_inputs\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"x\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Golang\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"y\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Fiber\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> metadata\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"purpose\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"testing\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> )\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"typescript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> p\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Parea\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PAREA_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">); \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// replace with your API key\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> p\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">completion\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> deployment_id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"p-qZrnFesaeCpqcXJ_yL3wi\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> llm_inputs:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">x:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Golang\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">y:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Fiber\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> metadata:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">purpose:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"testing\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"curl","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"58\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/completion'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'x-api-key: PAREA_API_KEY'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"end_user_identifier\": \"2596@gmail.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"inputs\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"city\": \"New York\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"llm_configuration\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"function_call\": \"auto\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"functions\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"description\": \"Get the current weather in a given location.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"get_current_weather\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"parameters\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"properties\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"location\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"description\": \"The city and state, e.g. San Francisco, CA\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"string\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"unit\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"enum\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"celsius\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fahrenheit\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"string\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"required\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"location\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"object\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"messages\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"content\": \"What is the weather in New York\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"role\": \"user\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"gpt-4o-mini\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model_params\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"max_length\": 500,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"gpt-4o-mini\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"temp\": 0\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"provider\": \"openai\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"metadata\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"purpose\": \"testing\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_id\": \"user_2Q9afRAKe6SZrc3U7\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"tags\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"weather\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"forecast\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Completion","description":"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request.\nThis endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.","operationId":"completion_api_parea_v1_completion_post","requestBody":"161fb4de-1090-49ab-98fc-f32ba480868b","responses":{"200":"590db2bf-75ad-4151-8ed6-d623e09eeb3d","422":"02642397-945e-4e5a-bb7b-861c186f21d8"},"security":["d1ed0731-6e93-406a-b8cf-13f1f0a9ad05","30b16482-d356-42af-8c60-d59310c32457","188e5849-9332-4f28-9c07-2e58cc9eb991"],"method":"post","type":"path","servers":[],"path":"/api/parea/v1/completion","baseUrlOptions":["https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1"],"title":"Completion","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"9","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"p "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" Parea("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"api_key"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"PAREA_API_KEY\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"# replace with your API key"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"response "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" p.completion("}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" Completion("}}}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" deployment_id"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"p-qZrnFesaeCpqcXJ_yL3wi\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" llm_inputs"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"x\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Golang\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"y\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Fiber\""}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" metadata"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"purpose\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"testing\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" )"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n"]}}}},"filename":"python"},{"dropdown":false,"language":"typescript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"typescript","children":{"type":"code","key":null,"ref":null,"props":{"language":"typescript","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" p"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" Parea"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"PAREA_API_KEY\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"); "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"// replace with your API key"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" response"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" p"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"completion"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" deployment_id:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"p-qZrnFesaeCpqcXJ_yL3wi\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" llm_inputs:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"x:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Golang\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"y:"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Fiber\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" metadata:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"purpose:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"testing\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n"]}}}},"filename":"typescript"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"58","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" --location"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/completion'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--header "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Content-Type: application/json'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--header "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'x-api-key: PAREA_API_KEY'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--data "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"end_user_identifier\": \"2596@gmail.com\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"inputs\": {"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"city\": \"New York\""}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"llm_configuration\": {"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"function_call\": \"auto\","}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"functions\": ["}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" {"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"description\": \"Get the current weather in a given location.\","}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"name\": \"get_current_weather\","}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"parameters\": {"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"properties\": {"}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"location\": {"}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"description\": \"The city and state, e.g. San Francisco, CA\","}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"type\": \"string\""}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"unit\": {"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"enum\": ["}}}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"celsius\","}}}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"fahrenheit\""}}}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" ],"}}}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"type\": \"string\""}}}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"56","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"required\": ["}}}},"\n",{"type":"span","key":"58","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"location\""}}}},"\n",{"type":"span","key":"60","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" ],"}}}},"\n",{"type":"span","key":"62","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"type\": \"object\""}}}},"\n",{"type":"span","key":"64","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"66","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"68","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" ],"}}}},"\n",{"type":"span","key":"70","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"messages\": ["}}}},"\n",{"type":"span","key":"72","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" {"}}}},"\n",{"type":"span","key":"74","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"content\": \"What is the weather in New York\","}}}},"\n",{"type":"span","key":"76","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"role\": \"user\""}}}},"\n",{"type":"span","key":"78","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"80","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" ],"}}}},"\n",{"type":"span","key":"82","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"model\": \"gpt-4o-mini\","}}}},"\n",{"type":"span","key":"84","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"model_params\": {"}}}},"\n",{"type":"span","key":"86","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"max_length\": 500,"}}}},"\n",{"type":"span","key":"88","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"model\": \"gpt-4o-mini\","}}}},"\n",{"type":"span","key":"90","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"temp\": 0"}}}},"\n",{"type":"span","key":"92","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"94","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"provider\": \"openai\""}}}},"\n",{"type":"span","key":"96","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"98","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"metadata\": {"}}}},"\n",{"type":"span","key":"100","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"purpose\": \"testing\","}}}},"\n",{"type":"span","key":"102","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_id\": \"user_2Q9afRAKe6SZrc3U7\""}}}},"\n",{"type":"span","key":"104","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"106","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"tags\": ["}}}},"\n",{"type":"span","key":"108","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"weather\","}}}},"\n",{"type":"span","key":"110","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"forecast\""}}}},"\n",{"type":"span","key":"112","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" ]"}}}},"\n",{"type":"span","key":"114","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"}'"}}}},"\n"]}}}},"filename":"curl"}],"requestExampleType":"mdx","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"llm_inputs":{"oneOf":[{"type":"object","title":"Llm Inputs","description":"Key-value pairs as inputs to prompt template. Only needs to be provided if `deployment_id` is provided or `llm_configuration.messages` are templated.","uniqueKey":"llm_inputs.oneOf.0","typeLabel":"Llm Inputs · object"},{"type":"null","title":"Llm Inputs","description":"Key-value pairs as inputs to prompt template. Only needs to be provided if `deployment_id` is provided or `llm_configuration.messages` are templated.","uniqueKey":"llm_inputs.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_inputs","typeLabel":"Llm Inputs · object | null"},"llm_configuration":{"type":"object","title":"LLMInputsSchema","description":"LLM configuration parameters such as messages, functions, etc.","default":{},"properties":{"model":{"oneOf":[{"type":"string","title":"Model","description":"Model name","uniqueKey":"llm_configuration.model.oneOf.0","typeLabel":"string"},{"type":"null","title":"Model","description":"Model name","uniqueKey":"llm_configuration.model.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model","typeLabel":"string | null"},"provider":{"oneOf":[{"type":"string","title":"ProviderName","description":"Provider name","enum":["openai","azure","anthropic","anyscale","vertexai","aws_bedrock","openrouter","mistral","litellm","groq","fireworks","cohere"],"uniqueKey":"llm_configuration.provider.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Provider name","uniqueKey":"llm_configuration.provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.provider","typeLabel":"enum\u003cstring> | null"},"model_params":{"oneOf":[{"type":"object","title":"ModelParamsSchema","description":"Model parameters","properties":{"model":{"oneOf":[{"type":"string","title":"Model","description":"Model name","default":"","uniqueKey":"llm_configuration.model_params.oneOf.0.model.oneOf.0","typeLabel":"string"},{"type":"null","title":"Model","description":"Model name","default":"","uniqueKey":"llm_configuration.model_params.oneOf.0.model.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params.oneOf.0.model","typeLabel":"string | null"},"temp":{"oneOf":[{"type":"number","title":"Temp","description":"Temperature","default":1,"maximum":1,"minimum":0,"uniqueKey":"llm_configuration.model_params.oneOf.0.temp.oneOf.0","typeLabel":"number"},{"type":"null","title":"Temp","description":"Temperature","default":1,"uniqueKey":"llm_configuration.model_params.oneOf.0.temp.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params.oneOf.0.temp","typeLabel":"number | null"},"top_p":{"oneOf":[{"type":"number","title":"Top P","description":"Top p","default":1,"maximum":1,"minimum":0,"uniqueKey":"llm_configuration.model_params.oneOf.0.top_p.oneOf.0","typeLabel":"number"},{"type":"null","title":"Top P","description":"Top p","default":1,"uniqueKey":"llm_configuration.model_params.oneOf.0.top_p.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params.oneOf.0.top_p","typeLabel":"number | null"},"frequency_penalty":{"oneOf":[{"type":"number","title":"Frequency Penalty","description":"Frequency penalty","default":0,"maximum":2,"minimum":-2,"uniqueKey":"llm_configuration.model_params.oneOf.0.frequency_penalty.oneOf.0","typeLabel":"number"},{"type":"null","title":"Frequency Penalty","description":"Frequency penalty","default":0,"uniqueKey":"llm_configuration.model_params.oneOf.0.frequency_penalty.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params.oneOf.0.frequency_penalty","typeLabel":"number | null"},"presence_penalty":{"oneOf":[{"type":"number","title":"Presence Penalty","description":"Presence penalty","default":0,"maximum":2,"minimum":-2,"uniqueKey":"llm_configuration.model_params.oneOf.0.presence_penalty.oneOf.0","typeLabel":"number"},{"type":"null","title":"Presence Penalty","description":"Presence penalty","default":0,"uniqueKey":"llm_configuration.model_params.oneOf.0.presence_penalty.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params.oneOf.0.presence_penalty","typeLabel":"number | null"},"max_length":{"oneOf":[{"type":"integer","title":"Max Length","description":"Max length of the output","uniqueKey":"llm_configuration.model_params.oneOf.0.max_length.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Max Length","description":"Max length of the output","uniqueKey":"llm_configuration.model_params.oneOf.0.max_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params.oneOf.0.max_length","typeLabel":"integer | null"},"response_format":{"oneOf":[{"type":"object","title":"Response Format","description":"Response format","uniqueKey":"llm_configuration.model_params.oneOf.0.response_format.oneOf.0","typeLabel":"Response Format · object"},{"type":"null","title":"Response Format","description":"Response format","uniqueKey":"llm_configuration.model_params.oneOf.0.response_format.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params.oneOf.0.response_format","typeLabel":"Response Format · object | null"},"safe_prompt":{"oneOf":[{"type":"boolean","title":"Safe Prompt","description":"Safe prompt. Only used for Mistral","uniqueKey":"llm_configuration.model_params.oneOf.0.safe_prompt.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Safe Prompt","description":"Safe prompt. Only used for Mistral","uniqueKey":"llm_configuration.model_params.oneOf.0.safe_prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params.oneOf.0.safe_prompt","typeLabel":"boolean | null"}},"uniqueKey":"llm_configuration.model_params.oneOf.0","typeLabel":"ModelParamsSchema · object"},{"type":"null","description":"Model parameters","uniqueKey":"llm_configuration.model_params.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.model_params","typeLabel":"ModelParamsSchema · object | null"},"messages":{"oneOf":[{"type":"array","items":{"properties":{"content":{"oneOf":[{"type":"string","title":"Content","description":"Message content","default":"","uniqueKey":"llm_configuration.messages.oneOf.0.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"llm_configuration.messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"any"},"title":"Content","description":"Message content","default":"","uniqueKey":"llm_configuration.messages.oneOf.0.items.[INDEX].content.oneOf.1","typeLabel":"any[]"},{"type":"null","title":"Content","description":"Message content","default":"","uniqueKey":"llm_configuration.messages.oneOf.0.items.[INDEX].content.oneOf.2","typeLabel":"null"}],"uniqueKey":"llm_configuration.messages.oneOf.0.items.[INDEX].content","typeLabel":"string | any[] | null"},"role":{"type":"string","title":"Role","description":"Message role","default":"user","enum":["user","assistant","system","user","assistant","function","tool"],"uniqueKey":"llm_configuration.messages.oneOf.0.items.[INDEX].role","typeLabel":"enum\u003cstring>"}},"type":"object","title":"MessageSchema","uniqueKey":"llm_configuration.messages.oneOf.0.items.[INDEX]","typeLabel":"MessageSchema · object"},"title":"Messages","description":"List of messages","uniqueKey":"llm_configuration.messages.oneOf.0","typeLabel":"MessageSchema · object[]"},{"type":"null","title":"Messages","description":"List of messages","uniqueKey":"llm_configuration.messages.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.messages","typeLabel":"MessageSchema · object[] | null"},"history":{"oneOf":[{"type":"array","items":{"properties":{"content":{"oneOf":[{"type":"string","title":"Content","description":"Message content","default":"","uniqueKey":"llm_configuration.history.oneOf.0.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"llm_configuration.history.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"any"},"title":"Content","description":"Message content","default":"","uniqueKey":"llm_configuration.history.oneOf.0.items.[INDEX].content.oneOf.1","typeLabel":"any[]"},{"type":"null","title":"Content","description":"Message content","default":"","uniqueKey":"llm_configuration.history.oneOf.0.items.[INDEX].content.oneOf.2","typeLabel":"null"}],"uniqueKey":"llm_configuration.history.oneOf.0.items.[INDEX].content","typeLabel":"string | any[] | null"},"role":{"type":"string","title":"Role","description":"Message role","default":"user","enum":["user","assistant","system","user","assistant","function","tool"],"uniqueKey":"llm_configuration.history.oneOf.0.items.[INDEX].role","typeLabel":"enum\u003cstring>"}},"type":"object","title":"MessageSchema","uniqueKey":"llm_configuration.history.oneOf.0.items.[INDEX]","typeLabel":"MessageSchema · object"},"title":"History","description":"List of history messages which are prepended to messages. Useful for chatbot applications which rely on deployed prompts.","uniqueKey":"llm_configuration.history.oneOf.0","typeLabel":"MessageSchema · object[]"},{"type":"null","title":"History","description":"List of history messages which are prepended to messages. Useful for chatbot applications which rely on deployed prompts.","uniqueKey":"llm_configuration.history.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.history","typeLabel":"MessageSchema · object[] | null"},"functions":{"oneOf":[{"type":"array","items":{"oneOf":[{}],"uniqueKey":"llm_configuration.functions.oneOf.0.items.[INDEX]","typeLabel":"any"},"title":"Functions","description":"List of function schemas, following the OpenAI API format","uniqueKey":"llm_configuration.functions.oneOf.0","typeLabel":"any[]"},{"type":"null","title":"Functions","description":"List of function schemas, following the OpenAI API format","uniqueKey":"llm_configuration.functions.oneOf.1","typeLabel":"null"}],"uniqueKey":"llm_configuration.functions","typeLabel":"any[] | null"},"function_call":{"oneOf":[{"type":"string","title":"Function Call","description":"Optionally, specify the fnction call, following OpenAI API behavior.","uniqueKey":"llm_configuration.function_call.oneOf.0","typeLabel":"string"},{"type":"object","title":"Function Call","description":"Optionally, specify the fnction call, following OpenAI API behavior.","additionalProperties":{"type":"string","uniqueKey":"llm_configuration.function_call.oneOf.1.additionalProperties","typeLabel":"string"},"uniqueKey":"llm_configuration.function_call.oneOf.1","typeLabel":"Function Call · object"},{"type":"null","title":"Function Call","description":"Optionally, specify the fnction call, following OpenAI API behavior.","uniqueKey":"llm_configuration.function_call.oneOf.2","typeLabel":"null"}],"uniqueKey":"llm_configuration.function_call","typeLabel":"string | Function Call · object | null"}},"uniqueKey":"llm_configuration","typeLabel":"LLMInputsSchema · object"},"project_name":{"oneOf":[{"type":"string","title":"Project Name","description":"Project name which is used to associate the log with a project.","default":"default","uniqueKey":"project_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Project Name","description":"Project name which is used to associate the log with a project.","default":"default","uniqueKey":"project_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"project_name","typeLabel":"string | null"},"project_uuid":{"oneOf":[{"type":"string","title":"Project Uuid","description":"Project UUID which is used to associate the log with a project. Does not need to be provided if the `project_name` is provided.","uniqueKey":"project_uuid.oneOf.0","typeLabel":"string"},{"type":"null","title":"Project Uuid","description":"Project UUID which is used to associate the log with a project. Does not need to be provided if the `project_name` is provided.","uniqueKey":"project_uuid.oneOf.1","typeLabel":"null"}],"uniqueKey":"project_uuid","typeLabel":"string | null"},"experiment_uuid":{"oneOf":[{"type":"string","title":"Experiment Uuid","description":"Experiment UUID which is used to associate the log with an experiment.","uniqueKey":"experiment_uuid.oneOf.0","typeLabel":"string"},{"type":"null","title":"Experiment Uuid","description":"Experiment UUID which is used to associate the log with an experiment.","uniqueKey":"experiment_uuid.oneOf.1","typeLabel":"null"}],"uniqueKey":"experiment_uuid","typeLabel":"string | null"},"parent_trace_id":{"oneOf":[{"type":"string","title":"Parent Trace Id","description":"UUID of the parent log. If given, will be used to associate the generation in a chain \u0026 create hierarchical nested logs.","uniqueKey":"parent_trace_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Parent Trace Id","description":"UUID of the parent log. If given, will be used to associate the generation in a chain \u0026 create hierarchical nested logs.","uniqueKey":"parent_trace_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"parent_trace_id","typeLabel":"string | null"},"root_trace_id":{"oneOf":[{"type":"string","title":"Root Trace Id","description":"UUID of the root log. If given, will be used to associate the generation in a chain \u0026 create hierarchical nested logs.","uniqueKey":"root_trace_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Root Trace Id","description":"UUID of the root log. If given, will be used to associate the generation in a chain \u0026 create hierarchical nested logs.","uniqueKey":"root_trace_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"root_trace_id","typeLabel":"string | null"},"end_user_identifier":{"oneOf":[{"type":"string","title":"End User Identifier","description":"Special field to track the end user which is interacting with your LLM app.","uniqueKey":"end_user_identifier.oneOf.0","typeLabel":"string"},{"type":"null","title":"End User Identifier","description":"Special field to track the end user which is interacting with your LLM app.","uniqueKey":"end_user_identifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"end_user_identifier","typeLabel":"string | null"},"deployment_id":{"oneOf":[{"type":"string","title":"Deployment Id","description":"This is the ID for a specific deployed prompt. You can find your deployed prompts on the Deployments tab. If a deployment_id is provided, Parea will fetch all of the associated configuration including model name, model parameters, and any associated functions. Any information provided on the llm_configuration field will be used instead of the associated deployed prompts fields.","uniqueKey":"deployment_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Deployment Id","description":"This is the ID for a specific deployed prompt. You can find your deployed prompts on the Deployments tab. If a deployment_id is provided, Parea will fetch all of the associated configuration including model name, model parameters, and any associated functions. Any information provided on the llm_configuration field will be used instead of the associated deployed prompts fields.","uniqueKey":"deployment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"deployment_id","typeLabel":"string | null"},"eval_metric_ids":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"eval_metric_ids.oneOf.0.items.[INDEX]","typeLabel":"integer"},"title":"Eval Metric Ids","description":"List of evaluation metric IDs deployed on Parea which should be used to evaluate the completion output.","uniqueKey":"eval_metric_ids.oneOf.0","typeLabel":"integer[]"},{"type":"null","title":"Eval Metric Ids","description":"List of evaluation metric IDs deployed on Parea which should be used to evaluate the completion output.","uniqueKey":"eval_metric_ids.oneOf.1","typeLabel":"null"}],"uniqueKey":"eval_metric_ids","typeLabel":"integer[] | null"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","description":"Key-value pairs to be associated with the log.","uniqueKey":"metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","description":"Key-value pairs to be associated with the log.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"Metadata · object | null"},"tags":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tags.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Tags","description":"List of tags to be associated with the log.","uniqueKey":"tags.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Tags","description":"List of tags to be associated with the log.","uniqueKey":"tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"tags","typeLabel":"string[] | null"},"target":{"oneOf":[{"type":"string","title":"Target","description":"Optional ground truth output for the inputs. Will be used for evaluation and can be used when creating a test case from the log.","uniqueKey":"target.oneOf.0","typeLabel":"string"},{"type":"null","title":"Target","description":"Optional ground truth output for the inputs. Will be used for evaluation and can be used when creating a test case from the log.","uniqueKey":"target.oneOf.1","typeLabel":"null"}],"uniqueKey":"target","typeLabel":"string | null"},"trace_id":{"oneOf":[{"type":"string","title":"Trace Id","description":"UUID of the generation log. If not given, will be auto-generated.","uniqueKey":"trace_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Trace Id","description":"UUID of the generation log. If not given, will be auto-generated.","uniqueKey":"trace_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"trace_id","typeLabel":"string | null"},"trace_name":{"oneOf":[{"type":"string","title":"Trace Name","description":"Name of the generation log. If not given, will be auto-generated in the format `llm-{provider}`.","uniqueKey":"trace_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Trace Name","description":"Name of the generation log. If not given, will be auto-generated in the format `llm-{provider}`.","uniqueKey":"trace_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"trace_name","typeLabel":"string | null"},"provider_api_key":{"oneOf":[{"type":"string","title":"Provider Api Key","description":"Provider API key to generate response. If not given, API keys saved on the platform will be used","uniqueKey":"provider_api_key.oneOf.0","typeLabel":"string"},{"type":"null","title":"Provider Api Key","description":"Provider API key to generate response. If not given, API keys saved on the platform will be used","uniqueKey":"provider_api_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider_api_key","typeLabel":"string | null"},"cache":{"type":"boolean","title":"Cache","description":"If true, the completion will be cached to avoid latency \u0026 cost for any subsequent completion using the same inputs.","default":true,"uniqueKey":"cache","typeLabel":"boolean"},"log_omit_inputs":{"type":"boolean","title":"Log Omit Inputs","description":"If true, the inputs, llm_configuration.messages, llm_configuration.functions, llm_configuration.model_params will not be logged.","default":false,"uniqueKey":"log_omit_inputs","typeLabel":"boolean"},"log_omit_outputs":{"type":"boolean","title":"Log Omit Outputs","description":"If true, the generated response will not be logged.","default":false,"uniqueKey":"log_omit_outputs","typeLabel":"boolean"},"log_omit":{"type":"boolean","title":"Log Omit","description":"Equivalent to setting both log_omit_inputs and log_omit_outputs to true.","default":false,"uniqueKey":"log_omit","typeLabel":"boolean"},"log_sample_rate":{"oneOf":[{"type":"number","title":"Log Sample Rate","description":"If specified, this log and its entire associated trace will logged with this probability. Must be between 0 and 1 (incl.). Defaults to 1.0 (i.e., keeping all logs)","default":1,"maximum":1,"minimum":0,"uniqueKey":"log_sample_rate.oneOf.0","typeLabel":"number"},{"type":"null","title":"Log Sample Rate","description":"If specified, this log and its entire associated trace will logged with this probability. Must be between 0 and 1 (incl.). Defaults to 1.0 (i.e., keeping all logs)","default":1,"uniqueKey":"log_sample_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"log_sample_rate","typeLabel":"number | null"},"inference_id":{"oneOf":[{"type":"string","title":"Inference Id","description":"Deprecated field which is the same `trace_id`","uniqueKey":"inference_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Inference Id","description":"Deprecated field which is the same `trace_id`","uniqueKey":"inference_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"inference_id","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","title":"Name","description":"Deprecated field","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Name","description":"Deprecated field","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"retry":{"type":"boolean","title":"Retry","description":"Deprecated field","default":false,"uniqueKey":"retry","typeLabel":"boolean"},"fallback_strategy":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"fallback_strategy.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Fallback Strategy","description":"Deprecated field","uniqueKey":"fallback_strategy.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Fallback Strategy","description":"Deprecated field","uniqueKey":"fallback_strategy.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallback_strategy","typeLabel":"string[] | null"},"stream":{"type":"boolean","title":"Stream","description":"Deprecated field. Use /completion/stream instead.","default":false,"uniqueKey":"stream","typeLabel":"boolean"}},"type":"object","title":"CompletionsSchema","examples":[{"end_user_identifier":"2596@gmail.com","inputs":{"city":"New York"},"llm_configuration":{"function_call":"auto","functions":[{"description":"Get the current weather in a given location.","name":"get_current_weather","parameters":{"properties":{"location":{"description":"The city and state, e.g. San Francisco, CA","type":"string"},"unit":{"enum":["celsius","fahrenheit"],"type":"string"}},"required":["location"],"type":"object"}}],"messages":[{"content":"What is the weather in New York","role":"user"}],"model":"gpt-4o-mini","model_params":{"max_length":500,"model":"gpt-4o-mini","temp":0},"provider":"openai"},"metadata":{"purpose":"testing","user_id":"user_2Q9afRAKe6SZrc3U7"},"tags":["weather","forecast"]},{"deployment_id":"p-qZrnFesaeCpqcXJ_yL3wi","llm_inputs":{"x":"Golang","y":"Fiber"},"metadata":{"purpose":"testing"}}],"uniqueKey":"","typeLabel":"CompletionsSchema · object"},"examples":{"Example":{"title":"Example","value":{"end_user_identifier":"2596@gmail.com","inputs":{"city":"New York"},"llm_configuration":{"function_call":"auto","functions":[{"description":"Get the current weather in a given location.","name":"get_current_weather","parameters":{"properties":{"location":{"description":"The city and state, e.g. San Francisco, CA","type":"string"},"unit":{"enum":["celsius","fahrenheit"],"type":"string"}},"required":["location"],"type":"object"}}],"messages":[{"content":"What is the weather in New York","role":"user"}],"model":"gpt-4o-mini","model_params":{"max_length":500,"model":"gpt-4o-mini","temp":0},"provider":"openai"},"metadata":{"purpose":"testing","user_id":"user_2Q9afRAKe6SZrc3U7"},"tags":["weather","forecast"]}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"590db2bf-75ad-4151-8ed6-d623e09eeb3d":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"content":{"type":"string","title":"Content","description":"Generated completion content.","isRequired":true,"uniqueKey":"content","typeLabel":"string"},"latency":{"type":"number","title":"Latency","description":"Latency of the completion in seconds.","isRequired":true,"uniqueKey":"latency","typeLabel":"number"},"input_tokens":{"type":"integer","title":"Input Tokens","description":"Number of tokens in the input.","isRequired":true,"uniqueKey":"input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","title":"Output Tokens","description":"Number of tokens in the output.","isRequired":true,"uniqueKey":"output_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","title":"Total Tokens","description":"Total number of tokens in the input and output.","isRequired":true,"uniqueKey":"total_tokens","typeLabel":"integer"},"cost":{"type":"number","title":"Cost","description":"Cost of the completion in USD.","isRequired":true,"uniqueKey":"cost","typeLabel":"number"},"model":{"type":"string","title":"Model","description":"Model name.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"provider":{"type":"string","title":"Provider","description":"Provider name.","isRequired":true,"uniqueKey":"provider","typeLabel":"string"},"cache_hit":{"type":"boolean","title":"Cache Hit","description":"If true, the completion was fetched from the cache.","isRequired":true,"uniqueKey":"cache_hit","typeLabel":"boolean"},"status":{"type":"string","title":"Status","description":"Status of the completion. Either 'success' or 'error'.","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"start_timestamp":{"type":"string","title":"Start Timestamp","description":"Start timestamp of the completion.","isRequired":true,"uniqueKey":"start_timestamp","typeLabel":"string"},"end_timestamp":{"type":"string","title":"End Timestamp","description":"End timestamp of the completion.","isRequired":true,"uniqueKey":"end_timestamp","typeLabel":"string"},"inference_id":{"type":"string","title":"Inference Id","description":"UUID of the log of the completion. The same as the `trace_id` in the request if provided.","isRequired":true,"uniqueKey":"inference_id","typeLabel":"string"},"error":{"oneOf":[{"type":"string","title":"Error","description":"Error message if the completion failed.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error","description":"Error message if the completion failed.","uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"string | null"},"trace_id":{"oneOf":[{"type":"string","title":"Trace Id","description":"UUID of the log of the completion. Will be the same as the `trace_id` in the request if provided.","uniqueKey":"trace_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Trace Id","description":"UUID of the log of the completion. Will be the same as the `trace_id` in the request if provided.","uniqueKey":"trace_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"trace_id","typeLabel":"string | null"}},"type":"object","required":["content","latency","input_tokens","output_tokens","total_tokens","cost","model","provider","cache_hit","status","start_timestamp","end_timestamp","inference_id"],"title":"CompletionsResponseSchema","example":{"cache_hit":true,"content":"Sure! Here's a simple Hello World program...","cost":0.0008,"end_timestamp":"2024-07-24 18:05:17","input_tokens":22,"latency":0,"model":"gpt-4o-mini-2024-07-18","output_tokens":189,"start_timestamp":"2024-07-24 18:05:17","status":"success","total_tokens":211,"trace_id":"ush221-d23rfcasc-21cdsc"},"uniqueKey":"","typeLabel":"CompletionsResponseSchema · object"},"examples":{"Example":{"title":"Example","value":{"cache_hit":true,"content":"Sure! Here's a simple Hello World program...","cost":0.0008,"end_timestamp":"2024-07-24 18:05:17","input_tokens":22,"latency":0,"model":"gpt-4o-mini-2024-07-18","output_tokens":189,"start_timestamp":"2024-07-24 18:05:17","status":"success","total_tokens":211,"trace_id":"ush221-d23rfcasc-21cdsc"}}},"exampleType":"generated"}},"exampleType":"generated"},"02642397-945e-4e5a-bb7b-861c186f21d8":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d1ed0731-6e93-406a-b8cf-13f1f0a9ad05":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"x-user-id","scopes":[]}},"30b16482-d356-42af-8c60-d59310c32457":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"x-user-id","scopes":[]}},"188e5849-9332-4f28-9c07-2e58cc9eb991":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"x-user-id","scopes":[]}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-user-id","scopes":[]},"schema":{"title":"x-user-id","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"x-user-id"}],"title":"APIKeyHeader"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-user-id","scopes":[]},"schema":{"title":"x-user-id","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"x-user-id"}],"title":"APIKeyHeader"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-user-id","scopes":[]},"schema":{"title":"x-user-id","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"x-user-id"}],"title":"APIKeyHeader"}]},"originalFileLocation":"openapi.json"},"subdomain":"pareaai","siteName":"Parea AI","title":"Completion - Parea AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T22:58:28.217Z","originalFileLocation":"api-reference/llm-proxy/completion.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request. This endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Parea AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Completion - Parea AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request. This endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Parea AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.parea.ai/api-reference/llm-proxy/completion\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pareaai.mintlify.app/_mintlify/api/og/v2?division=LLM+Proxy\u0026amp;title=Completion\u0026amp;description=Get+a+completion+response+using+either+one+of+your+organization%C3%A2%E2%82%AC%E2%84%A2s+deployed+prompts%2C+or+by+providing+completion+details+including+prompt+and+inputs+in+the+requ\u0026amp;theme=76f3f976f3374a923e121b3f\u0026amp;signature=f49d127428080d36ea42d1f510181ff02e29c5fe795bff0775a666aa3407272f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Completion - Parea AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request. This endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pareaai.mintlify.app/_mintlify/api/og/v2?division=LLM+Proxy\u0026amp;title=Completion\u0026amp;description=Get+a+completion+response+using+either+one+of+your+organization%C3%A2%E2%82%AC%E2%84%A2s+deployed+prompts%2C+or+by+providing+completion+details+including+prompt+and+inputs+in+the+requ\u0026amp;theme=76f3f976f3374a923e121b3f\u0026amp;signature=f49d127428080d36ea42d1f510181ff02e29c5fe795bff0775a666aa3407272f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pareaai/gB2mc3qTsxvE_WBo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Parea AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9563FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.parea.ai/api-reference/llm-proxy/completion\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/llm-proxy/completion.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.parea.ai/#organization\",\"name\":\"Parea AI\",\"url\":\"https://docs.parea.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pareaai/3kurg3MZRrsWWk8t/logo/parea-light.png?fit=max\u0026auto=format\u0026n=3kurg3MZRrsWWk8t\u0026q=85\u0026s=c32fc81b38c3586ed7187a84b3e0c8d9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.parea.ai#website\",\"name\":\"Parea AI\",\"url\":\"https://docs.parea.ai\",\"publisher\":{\"@id\":\"https://docs.parea.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.parea.ai/api-reference/llm-proxy/completion#webpage\",\"url\":\"https://docs.parea.ai/api-reference/llm-proxy/completion\",\"name\":\"Completion\",\"description\":\"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request. This endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.\",\"dateModified\":\"2026-01-06T22:58:28.217Z\",\"isPartOf\":{\"@id\":\"https://docs.parea.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.parea.ai/api-reference/llm-proxy/completion#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.parea.ai/api-reference/llm-proxy/completion#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Parea AI\",\"item\":\"https://docs.parea.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Completion\",\"item\":\"https://docs.parea.ai/api-reference/llm-proxy/completion\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.parea.ai/api-reference/llm-proxy/completion#apireference\",\"headline\":\"Completion\",\"name\":\"Completion\",\"description\":\"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request. This endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.\",\"url\":\"https://docs.parea.ai/api-reference/llm-proxy/completion\",\"mainEntityOfPage\":{\"@id\":\"https://docs.parea.ai/api-reference/llm-proxy/completion#webpage\"},\"dateModified\":\"2026-01-06T22:58:28.217Z\",\"publisher\":{\"@id\":\"https://docs.parea.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.parea.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Parea AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Parea AI","nav":{"global":{"anchors":[{"anchor":"Github","href":"https://github.com/parea-ai/parea-sdk","icon":"github"},{"anchor":"Discord","href":"https://discord.gg/p7CUwSKJD6","icon":"discord"},{"anchor":"Chat with Founders","href":"https://calendly.com/parea-ai/chat","icon":"phone"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/welcome/what_is_parea_ai"}]},{"tab":"API Reference","groups":[{"group":"General","pages":[{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Create or get Project","openapi":"post /api/parea/v1/project","href":"/api-reference/general/create-or-get-project"},{"openapi":"get /api/parea/v1/","title":"Health Check","href":"/api-reference/general/health-check"}]},{"group":"Tracing","pages":[{"openapi":"post /api/parea/v1/trace_log","title":"Record Trace Log","href":"/api-reference/tracing/record-trace-log"},{"openapi":"post /api/parea/v1/feedback","title":"Record Feedback","href":"/api-reference/tracing/record-feedback"},{"openapi":"put /api/parea/v1/trace_log","title":"Update Trace Log","href":"/api-reference/tracing/update-trace-log"},{"title":"Get Trace Logs","openapi":"post /api/parea/v1/get_trace_logs","href":"/api-reference/tracing/get-trace-logs"},{"title":"Get Trace Log","openapi":"get /api/parea/v1/trace_log/{trace_id}","href":"/api-reference/tracing/get-trace-log"}]},{"group":"Experiments","pages":[{"title":"Create Experiment","openapi":"post /api/parea/v1/experiment","href":"/api-reference/experiments/create-experiment"},{"title":"Finish Experiment","openapi":"post /api/parea/v1/experiment/{experiment_uuid}/finished","href":"/api-reference/experiments/finish-experiment"},{"title":"Get Experiment Stats","openapi":"get /api/parea/v1/experiment/{experiment_uuid}/stats","href":"/api-reference/experiments/get-experiment-stats"},{"title":"Get Experiment Trace Logs","openapi":"post /api/parea/v1/experiment/{experiment_uuid}/trace_logs","href":"/api-reference/experiments/get-experiment-trace-logs"},{"title":"List Experiments","openapi":"post /api/parea/v1/experiments","description":"Lists experiments given a set of filters incl. their high-level statistics.","href":"/api-reference/experiments/list-experiments"}]},{"group":"LLM Proxy","pages":[{"openapi":"post /api/parea/v1/completion","title":"Completion","href":"/api-reference/llm-proxy/completion"},{"openapi":"post /api/parea/v1/completion/stream","title":"Stream Completion","description":"Get a completion response using either one of your organization’s deployed prompts, or by providing completion details including prompt and inputs in the request.\n\nThis endpoint acts as a LLM gateway/proxy endpoint to generate completions from different LLMs.","href":"/api-reference/llm-proxy/stream-completion"},{"openapi":"post /api/parea/v1/deployed-prompt","title":"Fetch Deployed Prompt","href":"/api-reference/llm-proxy/fetch-deployed-prompt"}]},{"group":"Datasets","pages":[{"openapi":"post /api/parea/v1/collection","title":"Create Collection","href":"/api-reference/datasets/create-collection"},{"openapi":"post /api/parea/v1/testcases","title":"Create Test Cases For Dataset","href":"/api-reference/datasets/create-test-cases-for-dataset"},{"openapi":"get /api/parea/v1/collection/{test_collection_identifier}","title":"Get Test Case Collection By Identifier","href":"/api-reference/datasets/get-test-case-collection-by-identifier"},{"openapi":"post /api/parea/v1/update_test_case/{dataset_id}/{test_case_id}","title":"Update Test Case","href":"/api-reference/datasets/update-test-case"}]},{"group":"SDK","pages":[{"title":"Python","href":"/api-reference/sdk/python"},{"title":"TypeScript","href":"/api-reference/sdk/typescript"}]}]},{"tab":"Blog","pages":[{"title":"Blog","href":"/blog/self-improving-domain-specific-alligned-llm-evals-with-human-judgement"}]}]},"basePath":"","title":"Completion - Parea AI","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C8RPHPxo.js","utils-0BK-9q6z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B4v9psJ4.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BNP-Fvr0.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js","Page-Buji1S4J.js","getPastedJson-xAIyhUFE.js","icon-S6FBih11.js","MethodPill-SaYeUZyk.js","DuplicateIcon-Cs-p3v2Q.js","createIcon-DjCFEoHq.js","DynamicMarkdown-BcnBltEQ.js","SectionHeading-BUBl0eEF.js","axios-vUo_bRtp.js","Markdown-h4cOoD8d.js","clsx-B2v50t8t.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DJnKvr0g.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BHrrjR1K.js"]}