Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions js/.changeset/deep-eyes-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@arizeai/openinference-semantic-conventions": patch
---

Add llm.token_count.prompt_details.cache_input semantic convention
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ export const LLM_TOKEN_COUNT_PROMPT_DETAILS_CACHE_WRITE =
export const LLM_TOKEN_COUNT_PROMPT_DETAILS_CACHE_READ =
`${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.token_count}.prompt_details.cache_read` as const;

/** Token count for the input tokens in the prompt that were cached (in tokens) */
export const LLM_TOKEN_COUNT_PROMPT_DETAILS_CACHE_INPUT =
`${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.token_count}.prompt_details.cache_input` as const;

/** Token count for audio input presented in the prompt (in tokens) */
export const LLM_TOKEN_COUNT_PROMPT_DETAILS_AUDIO =
`${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.token_count}.prompt_details.audio` as const;
Expand Down Expand Up @@ -642,6 +646,7 @@ export const SemanticConventions = {
LLM_TOKEN_COUNT_PROMPT_DETAILS,
LLM_TOKEN_COUNT_PROMPT_DETAILS_CACHE_WRITE,
LLM_TOKEN_COUNT_PROMPT_DETAILS_CACHE_READ,
LLM_TOKEN_COUNT_PROMPT_DETAILS_CACHE_INPUT,
LLM_TOKEN_COUNT_PROMPT_DETAILS_AUDIO,
LLM_TOKEN_COUNT_TOTAL,
LLM_SYSTEM,
Expand Down
Loading