Skip to content
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

Agents: validate auth #467

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Agents: validate auth #467

merged 1 commit into from
Jul 19, 2024

Conversation

lusmoura
Copy link
Contributor

@lusmoura lusmoura commented Jul 19, 2024

Thank you for contributing to the Cohere Toolkit!

  • PR title: "area: description"

    • Where "area" is whichever of interface, frontend, model, tools, backend, etc. is being modified. Use "docs: ..." for purely docs changes, "infra: ..." for CI changes.
    • Example: "deployment: add Azure model option"
  • PR message: Delete this entire checklist and replace with

    • Description: a description of the change
    • Issue: the issue # it fixes, if applicable
    • Dependencies: any dependencies required for this change
  • Add tests and docs: Please include testing and documentation for your changes

  • Lint and test: Run make lint and make run-tests

AI Description

This pull request updates the validate_authorization dependency in the src/backend/config/routers.py file and removes a print statement from the chat_stream function in src/backend/routers/chat.py.

File Changes

  • src/backend/config/routers.py:
    • The validate_authorization dependency is uncommented and added to the "auth" list for the RouterName class.
  • src/backend/routers/chat.py:
    • The print("trace_id", trace_id) statement is removed from the chat_stream function.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.38%. Comparing base (86eefe2) to head (02318a6).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #467      +/-   ##
==========================================
- Coverage   81.63%   81.38%   -0.25%     
==========================================
  Files         198      199       +1     
  Lines        8303     8354      +51     
==========================================
+ Hits         6778     6799      +21     
- Misses       1525     1555      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lusmoura lusmoura merged commit 3314ec5 into main Jul 19, 2024
5 checks passed
@lusmoura lusmoura deleted the luisa/auth_agents branch July 19, 2024 15:54
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.

None yet

4 participants