-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add raw response mode to process_query #79
base: main
Are you sure you want to change the base?
Conversation
- Add raw_response option to return tuple instead of template - Update extract_content endpoint for plain text output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good starting point for the API Thank you
@@ -18,40 +19,43 @@ async def process_query( | |||
pattern_type: str = "exclude", | |||
pattern: str = "", | |||
is_index: bool = False, | |||
) -> _TemplateResponse: | |||
raw_response: bool = False | |||
) -> Union[_TemplateResponse, tuple[str, str, str]]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should now be able to use the _TemplateResponse | tuple[str, str, str]
syntax
@cevatkerim Very good! In order to reach the MVP state for an API we would probably need:
I would be very happy to help you work on this branch if you invited me as contributer to your repo |
Sounds good I already added you as a collaborator. You should have access. |
Example usage: