Skip to content

Commit

Permalink
PAI-1061-execution-order-and-depth-py
Browse files Browse the repository at this point in the history
  • Loading branch information
jalexanderII committed May 21, 2024
1 parent 857a040 commit d1fe0d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions parea/cookbook/tracing_with_open_ai_endpoint_directly.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ def json_call() -> str:
"Whether sparkling wine is good for you.",
additional_description="Provide a concise, few sentence argument on why sparkling wine is good for you.",
)
# print(result)
# p.record_feedback(
# FeedbackRequest(
# trace_id=trace_id,
# score=0.7, # 0.0 (bad) to 1.0 (good)
# )
# )

# print(json_call())
print(result)
p.record_feedback(
FeedbackRequest(
trace_id=trace_id,
score=0.7, # 0.0 (bad) to 1.0 (good)
)
)

print(json_call())
4 changes: 2 additions & 2 deletions parea/wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
from uuid import uuid4

from parea.cache.cache import Cache
from parea.constants import PAREA_OS_ENV_EXPERIMENT_UUID, TURN_OFF_PAREA_LOGGING
from parea.constants import PAREA_OS_ENV_EXPERIMENT_UUID
from parea.evals.utils import _make_evaluations
from parea.helpers import is_logging_disabled, timezone_aware_now
from parea.schemas.models import TraceLog, UpdateTraceScenario
from parea.utils.trace_utils import call_eval_funcs_then_log, fill_trace_data, trace_context, trace_data, execution_order_counters
from parea.utils.trace_utils import call_eval_funcs_then_log, execution_order_counters, fill_trace_data, trace_context, trace_data
from parea.wrapper.utils import safe_format_template_to_prompt, skip_decorator_if_func_in_stack

logger = logging.getLogger()
Expand Down

0 comments on commit d1fe0d3

Please sign in to comment.