Skip to content

Commit

Permalink
fix(playground): invalidate cache for playground span project to ensu…
Browse files Browse the repository at this point in the history
…re new span is refetched
  • Loading branch information
axiomofjoy committed Oct 14, 2024
1 parent 39c9940 commit 6b62d2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/phoenix/server/api/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from phoenix.server.api.context import Context
from phoenix.server.api.input_types.ChatCompletionMessageInput import ChatCompletionMessageInput
from phoenix.server.api.types.ChatCompletionMessageRole import ChatCompletionMessageRole
from phoenix.server.dml_event import SpanInsertEvent
from phoenix.trace.attributes import unflatten

if TYPE_CHECKING:
Expand Down Expand Up @@ -184,6 +185,7 @@ async def chat_completion(
llm_token_count_completion=0,
)
)
info.context.event_queue.put(SpanInsertEvent(ids=(playground_project_id,)))


def _llm_span_kind() -> Iterator[Tuple[str, Any]]:
Expand Down

0 comments on commit 6b62d2a

Please sign in to comment.