Skip to content

Commit 5614207

Browse files
committed
don't log parent early
1 parent 0ad5bdb commit 5614207

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

parea/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ def _update_data_and_trace(self, data: Completion) -> Completion:
347347
if parent_trace_id:
348348
trace_data.get()[parent_trace_id].children.append(inference_id)
349349
trace_data.get()[parent_trace_id].experiment_uuid = experiment_uuid
350-
logger_record_log(parent_trace_id)
351350
except Exception as e:
352351
logger.debug(f"Error updating trace ids for completion. Trace log will be absent: {e}")
353352

parea/cookbook/tracing_and_evaluating_openai_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
load_dotenv()
1717

1818
openai.api_key = os.getenv("OPENAI_API_KEY")
19-
19+
openai.api_type = "openai"
2020

2121
use_cache = False # by using the in memory cache, you don't need a Parea API key
2222
cache = InMemoryCache() if use_cache else None

0 commit comments

Comments
 (0)