Skip to content

Commit

Permalink
Added include metadata params (#472)
Browse files Browse the repository at this point in the history
* added include metadata params

* added include metadata to constants
  • Loading branch information
jagadeeswaran-zipstack authored Jul 10, 2024
1 parent e450617 commit 65fe1d0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,9 @@ def _fetch_response(
prompt_host=settings.PROMPT_HOST,
prompt_port=settings.PROMPT_PORT,
)
include_metadata = {TSPKeys.INCLUDE_METADATA: True}

answer = responder.answer_prompt(payload)
answer = responder.answer_prompt(payload, include_metadata)
# TODO: Make use of dataclasses
if answer["status"] == "ERROR":
# TODO: Publish to FE logs from here
Expand Down

0 comments on commit 65fe1d0

Please sign in to comment.