Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Merge pull request #171 from openchatai/feat/demo_prep
Browse files Browse the repository at this point in the history
fixing backward compat issue
  • Loading branch information
codebanesr authored Oct 21, 2023
2 parents c5dd6ef + aed746c commit b831ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm-server/routes/root_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def handle_request(data: Dict[str, Any]) -> Any:
base_prompt = data.get("base_prompt", "")
headers = data.get("headers", {})
server_base_url = cast(str, data.get("server_base_url", ""))
app = headers["X-App-Name"] or None
app = headers.get("X-App-Name") or None

logging.info("[OpenCopilot] Got the following user request: {}".format(text))
for required_field, error_msg in [
Expand Down Expand Up @@ -81,7 +81,7 @@ def handle_request(data: Dict[str, Any]) -> Any:
"of them"
)
current_state = process_state(app, headers)

logging.info(f"Received app configuration: {app}")
bot_response = hasSingleIntent(swagger_doc, text, session_id, current_state)
if len(bot_response.ids) >= 1:
Expand Down

0 comments on commit b831ad9

Please sign in to comment.