#79
Add optional app reference header to OpenAI gateway service
Status: closedSummary
Add an optional app-reference header to the OpenAI gateway service of devplace.net. The header accepts a free-form string (max 30 characters, slug-valid characters only, no spaces). Default value is default. Track usage statistics per app reference, indexed for fast retrieval, to enable server-side cost attribution and transparency across all client apps.
Steps to Reproduce
- Not provided.
Expected Behaviour
- The OpenAI gateway service accepts an optional
app-referenceheader. - The header value is validated: max 30 characters, slug-valid characters only (no spaces).
- If the header is absent, the default value
defaultis used. - Usage statistics (e.g., number of inferences, costs) are tracked per app reference and indexed for fast querying.
- All client apps within devplace.net that use AI are assigned a consistent app reference following the naming convention
devplace-[app/service/whatever]-v-1-0-0. - The
/docsendpoint is updated to document the new header and strongly recommend its use.
Actual Behaviour
Not provided.
Environment
Not provided.
Reported by retoor via DevPlace.
Updates & comments
No updates yet.
Log in to comment.