Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
alizenhom committed Sep 6, 2024
1 parent 6ac04cb commit 42370a7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@

from typing import Collection

from wrapt import wrap_function_wrapper

from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.instrumentation.openai.package import _instruments
from opentelemetry.trace import get_tracer
from wrapt import wrap_function_wrapper

from .patch import chat_completions_create


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,28 @@
# limitations under the License.


from opentelemetry.trace import SpanKind, Span
from opentelemetry.trace.status import Status, StatusCode
from .span_attributes import LLMSpanAttributes
from opentelemetry.semconv.attributes import (
error_attributes as ErrorAttributes,
)
import json

from opentelemetry.semconv._incubating.attributes import (
gen_ai_attributes as GenAIAttributes,
)
from opentelemetry.semconv.attributes import (
error_attributes as ErrorAttributes,
)
from opentelemetry.trace import Span, SpanKind, Tracer
from opentelemetry.trace.status import Status, StatusCode

from .span_attributes import LLMSpanAttributes
from .utils import (
silently_fail,
extract_content,
extract_tools_prompt,
get_llm_request_attributes,
is_streaming,
set_span_attribute,
set_event_completion,
extract_tools_prompt,
set_event_prompt,
set_span_attribute,
silently_fail,
)
from opentelemetry.trace import Tracer
import json


def chat_completions_create(tracer: Tracer):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# limitations under the License.

from __future__ import annotations

from typing import Dict, List, Optional

from pydantic import BaseModel, ConfigDict, Field


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
import json
import logging
from typing import Optional, Union

from openai import NOT_GIVEN

from opentelemetry.semconv._incubating.attributes import (
gen_ai_attributes as GenAIAttributes,
)

from opentelemetry.trace import Span


Expand Down

0 comments on commit 42370a7

Please sign in to comment.