Skip to content

Commit

Permalink
add app-id variable to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
wj-Mcat committed Apr 12, 2024
1 parent 6910387 commit c165511
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions erniebot-agent/src/erniebot_agent/tools/remote_tool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import os
import dataclasses
import logging
from copy import deepcopy
Expand Down Expand Up @@ -118,6 +119,9 @@ async def send_request(self, tool_arguments: Dict[str, Any]) -> dict:
headers = deepcopy(self.headers)
headers["Content-Type"] = self.tool_view.parameters_content_type

if "EB_SDK_TRACE_APP_ID" in os.environ:
headers["X-EB-SDK-TRACE-APP-ID"] = os.getenv("EB_SDK_TRACE_APP_ID")

requests_inputs = {
"headers": headers,
}
Expand Down

0 comments on commit c165511

Please sign in to comment.