Add optional app reference header to OpenAI gateway service #79

Closed
opened 2026-07-13 04:45:08 +02:00 by retoor · 0 comments
Owner

Summary

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

  1. Not provided.

Expected Behaviour

  • The OpenAI gateway service accepts an optional app-reference header.
  • The header value is validated: max 30 characters, slug-valid characters only (no spaces).
  • If the header is absent, the default value default is 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 /docs endpoint is updated to document the new header and strongly recommend its use.

Actual Behaviour

Not provided.

Environment

Not provided.


Reported by retoor via DevPlace.

## Summary 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 1. Not provided. ## Expected Behaviour - The OpenAI gateway service accepts an optional `app-reference` header. - The header value is validated: max 30 characters, slug-valid characters only (no spaces). - If the header is absent, the default value `default` is 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 `/docs` endpoint is updated to document the new header and strongly recommend its use. ## Actual Behaviour Not provided. ## Environment Not provided. --- *Reported by **retoor** via DevPlace.*
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: retoor/devplacepy#79
No description provided.