Files
flow/docs/versioned_docs/version-1.9.0/API-Reference/curl-examples/api-openai-responses/continue-conversations-with-response-and-session-ids-2.sh

14 lines
300 B
Bash

BASE_URL="${FLOW_SERVER_URL:-$FLOW_URL}"
curl -X POST \
"$BASE_URL/v1/responses" \
-H "x-api-key: $FLOW_API_KEY" \
-H "Content-Type: application/json" \
-d @- <<EOF
{
"model": "$FLOW_ID",
"input": "What's my name?",
"previous_response_id": "c45f4ac8-772b-4675-8551-c560b1afd590"
}
EOF