Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions clarifai/runners/models/model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def runner_item_predict(
start_time = time.time()
req_id = get_req_id_from_context()
status_str = STATUS_UNKNOWN
# Endpoint is always POST /v2/.../outputs for this runner
endpoint = "POST /v2/.../outputs "
# Operation name for logging purposes
endpoint = "model_predict"

# if method_name == '_GET_SIGNATURES' then the request is for getting signatures and we don't want to log it.
# This is a workaround to avoid logging the _GET_SIGNATURES method call.
Expand Down Expand Up @@ -204,7 +204,7 @@ def runner_item_generate(
start_time = time.time()
req_id = get_req_id_from_context()
status_str = STATUS_UNKNOWN
endpoint = "POST /v2/.../outputs/generate"
endpoint = "model_generate"

# Use req_secrets_context to temporarily set request-type secrets as environment variables
with req_secrets_context(request):
Expand Down Expand Up @@ -260,7 +260,7 @@ def runner_item_stream(
start_time = time.time()
req_id = get_req_id_from_context()
status_str = STATUS_UNKNOWN
endpoint = "POST /v2/.../outputs/stream "
endpoint = "model_stream"

# Get the first request to establish secrets context
first_request = None
Expand Down
Loading