Skip to content

docs(config): add llm request tagging guide - #321

Open
SleepySML wants to merge 1 commit into
codemie-ai:mainfrom
SleepySML:docs/EPMCDME-12602-llm-request-tagging
Open

docs(config): add llm request tagging guide#321
SleepySML wants to merge 1 commit into
codemie-ai:mainfrom
SleepySML:docs/EPMCDME-12602-llm-request-tagging

Conversation

@SleepySML

@SleepySML SleepySML commented Jul 17, 2026

Copy link
Copy Markdown

Summary

Documents the LLM request tagging feature shipped in MR #3775 (EPMCDME-12602). CodeMie now injects X-CodeMie-Version and X-CodeMie-Project HTTP headers on outbound LLM calls for supported provider paths.

Changes

  • Added docs/admin/configuration/observability/request-tagging.md — new dedicated page covering injected headers, provider coverage table, purpose/use cases, configuration, and verification steps
  • Updated sidebars.ts — added request-tagging to the Observability category
  • Added faq/what-http-headers-does-codemie-add-to-outbound-llm-requests.md — FAQ entry for header names and values
  • Added faq/which-llm-providers-receive-codemie-version-and-project-headers.md — FAQ entry for provider coverage
  • Fixed scripts/secrets-check.sh — quoted $CONTAINER_ENGINE and added Windows (MSYS/Git Bash) path conversion so Gitleaks runs correctly on Windows with Podman

Testing

  • Tested locally with npm start
  • All pages render correctly
  • Images display properly
  • Internal links work
  • Sidebar navigation works

Quality Checks

  • npm run check passes (typecheck + lint + commitlint)
  • No MDX compilation errors
  • No raw angle brackets (<text> must be `<text>`)
  • Sidebar references document IDs (not filenames)
  • Images stored locally next to content (not in static/img/)
  • Commit messages follow Conventional Commits
  • No secrets or credentials in documentation

Additional Notes

Provider coverage documented: Azure OpenAI/DIAL ✅, Google Vertex AI ✅, Anthropic direct ✅, AWS Bedrock ❌ (no custom HTTP headers), LiteLLM proxy ❌ (uses x-litellm-tags instead).

@SleepySML
SleepySML force-pushed the docs/EPMCDME-12602-llm-request-tagging branch from 4378179 to 7b492a7 Compare July 17, 2026 09:29
@codemie-ai

Copy link
Copy Markdown
Owner

[AUTO_CLOSE_WARNING] ⏰ This pull request is older than 14 days and will be automatically closed in 16 more days (when it reaches 30 days old)! To maintain this PR, either convert it to Draft or complete your changes and merge.

| `X-CodeMie-Project` | Name of the active CodeMie project at request time | `my-project` |

`X-CodeMie-Version` is always present. `X-CodeMie-Project` is included only when a project
context is active; it is omitted entirely when no project is set for the request.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How this is possible? AFAIK all requests to litellm come from a certain from project either from assistant or project set in CLI profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants