Skip to content

Commit 369d1ba

Browse files
authored
Add headers for tracing in LLMs & Embeddings (#19551)
1 parent 0ae02cb commit 369d1ba

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

llama-index-integrations/embeddings/llama-index-embeddings-upstage/llama_index/embeddings/upstage/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def __init__(
104104
f"Model name: {model}"
105105
)
106106

107+
default_headers = (default_headers or {}) | {"x-upstage-client": "llamaindex"}
108+
107109
super().__init__(
108110
embed_batch_size=embed_batch_size,
109111
dimensions=dimensions,

llama-index-integrations/embeddings/llama-index-embeddings-upstage/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dev = [
2727

2828
[project]
2929
name = "llama-index-embeddings-upstage"
30-
version = "0.4.1"
30+
version = "0.4.2"
3131
description = "llama-index embeddings upstage integration"
3232
authors = [{name = "Your Name", email = "[email protected]"}]
3333
requires-python = ">=3.9,<4.0"

llama-index-integrations/llms/llama-index-llms-upstage/llama_index/llms/upstage/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ def __init__(
157157
api_key=api_key, api_base=api_base
158158
)
159159

160+
default_headers = (default_headers or {}) | {"x-upstage-client": "llamaindex"}
161+
160162
super().__init__(
161163
model=model,
162164
temperature=temperature,

llama-index-integrations/llms/llama-index-llms-upstage/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dev = [
2626

2727
[project]
2828
name = "llama-index-llms-upstage"
29-
version = "0.5.0"
29+
version = "0.5.1"
3030
description = "llama-index llms upstage integration"
3131
authors = [{name = "Your Name", email = "[email protected]"}]
3232
requires-python = ">=3.9,<4.0"

0 commit comments

Comments
 (0)