Skip to content

Fix API ask user ID and preserve sources#8

Open
LordKay-sudo wants to merge 1 commit into
aws-samples:mainfrom
LordKay-sudo:fix/api-ask-user-id-and-sources
Open

Fix API ask user ID and preserve sources#8
LordKay-sudo wants to merge 1 commit into
aws-samples:mainfrom
LordKay-sudo:fix/api-ask-user-id-and-sources

Conversation

@LordKay-sudo

Copy link
Copy Markdown

Summary

  • fix undefined user_id in /api/ask by initializing it from get_current_user_id()
  • preserve orchestrator-returned sources in ask_internal() instead of clearing them
  • keep the change focused to API correctness with no behavior changes outside the bugfix scope

Test plan

  • py -3 -m py_compile main.py
  • Verify /api/ask no longer references undefined user_id
  • Verify ask_internal() returns sources from orchestration path

Refs #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant