Skip to content

Commit 64fb042

Browse files
committed
Please fix reportPossiblyUnboundVariable
1 parent fa4a8b4 commit 64fb042

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain

instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain/callback_handler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ def on_chat_model_start(
120120
provider=provider,
121121
top_p=top_p,
122122
frequency_penalty=frequency_penalty,
123-
presence_penalty=presence_penalty, # type: ignore[reportPossiblyUnboundVariable]
124-
stop_sequences=stop_sequences, # type: ignore[reportPossiblyUnboundVariable]
125-
seed=seed, # type: ignore[reportPossiblyUnboundVariable]
126-
temperature=temperature, # type: ignore[reportPossiblyUnboundVariable]
127-
max_tokens=max_tokens, # type: ignore[reportPossiblyUnboundVariable]
123+
presence_penalty=presence_penalty,
124+
stop_sequences=stop_sequences,
125+
seed=seed,
126+
temperature=temperature,
127+
max_tokens=max_tokens,
128128
)
129129
llm_invocation = self._telemetry_handler.start_llm(
130130
invocation=llm_invocation

0 commit comments

Comments
 (0)