Skip to content

Commit 6ca2e4b

Browse files
Fixing OpenAI MCP cURL example
1 parent 0f20142 commit 6ca2e4b

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

docs-v2/pages/connect/mcp/openai.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,12 @@ APP_SLUG=$(curl -s -X GET "https://api.pipedream.com/v1/apps?q=notion" \
153153
-H "Authorization: Bearer $ACCESS_TOKEN" | jq -r '.data[0].name_slug')
154154

155155
# Step 3: Make request to OpenAI with MCP tool
156-
curl -X POST https://api.openai.com/v1/chat/completions \
156+
curl -X POST https://api.openai.com/v1/responses \
157157
-H "Content-Type: application/json" \
158158
-H "Authorization: Bearer $OPENAI_API_KEY" \
159159
-d '{
160160
"model": "gpt-4.1",
161-
"messages": [
162-
{
163-
"role": "user",
164-
"content": "Summarize my most recently created Notion doc for me and help draft an email to our customers"
165-
}
166-
],
161+
"input": "Summarize my most recently created Notion doc for me and help draft an email to our customers",
167162
"tools": [
168163
{
169164
"type": "mcp",

pnpm-lock.yaml

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)