Skip to content

Commit

Permalink
chore: adding open ai chunking and tool choice
Browse files Browse the repository at this point in the history
  • Loading branch information
darshit-s3 committed Jul 22, 2024
1 parent 5d5a04c commit 35154bb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="trace-attributes", # Choose a unique name for PyPI
version="6.0.2",
version="6.0.3",
author="Karthik Kalyanaraman",
author_email="[email protected]",
description="LangTrace - Trace Attributes",
Expand Down
1 change: 1 addition & 0 deletions src/python/langtrace/trace_attributes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class SpanAttributes:

LLM_USER = "gen_ai.user"
LLM_TOOLS = "gen_ai.request.tools"
LLM_TOOL_CHOICE = "gen_ai.request.tool_choice"
LLM_TOOL_RESULTS = "gen_ai.request.tool_results"

LLM_TOP_K = "gen_ai.request.top_k"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: llm_span_attributes.json
# timestamp: 2024-07-10T15:09:12+00:00
# timestamp: 2024-07-22T20:39:30+00:00

from __future__ import annotations

Expand Down Expand Up @@ -91,6 +91,11 @@ class LLMSpanAttributes(BaseModel):
alias='gen_ai.request.encoding_formats',
description="Encoding formats from the input request. Allowed values: ['float', 'int8','uint8', 'binary', 'ubinary', 'base64']",
)
gen_ai_completion_chunk: Optional[str] = Field(
None,
alias='gen_ai.completion.chunk',
description='Chunk text from the response',
)
gen_ai_request_dimensions: Optional[float] = Field(
None,
alias='gen_ai.request.dimensions',
Expand Down
4 changes: 2 additions & 2 deletions src/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langtrase/trace-attributes",
"version": "6.0.5",
"version": "6.0.6",
"description": "LangTrace - Trace Attributes",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 35154bb

Please sign in to comment.