AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

HuggingFace Chat support.

Open BillSchumacher opened this issue 2 years ago • 4 comments

They may shut this down, but could be good for a minute.

Background

This implements fetching a response from the new HuggingFace Chat endpoints. Set USE_HUGGINGFACE=True in .env

Changes

Documentation

Test Plan

PR Quality Checklist

  • [x] My pull request is atomic and focuses on a single change.
  • [x] I have thoroughly tested my changes with multiple different prompts.
  • [x] I have considered potential risks and mitigations for my changes.
  • [x] I have documented my changes clearly and comprehensively.
  • [x] I have not snuck in any "extra" small tweaks changes

BillSchumacher avatar Apr 26 '23 03:04 BillSchumacher

Codecov Report

Patch coverage: 41.17% and project coverage change: -7.89 :warning:

Comparison is base (d753793) 50.73% compared to head (221aba4) 42.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3284      +/-   ##
==========================================
- Coverage   50.73%   42.85%   -7.89%     
==========================================
  Files          65       65              
  Lines        2935     2952      +17     
  Branches      493      496       +3     
==========================================
- Hits         1489     1265     -224     
- Misses       1326     1624     +298     
+ Partials      120       63      -57     
Impacted Files Coverage Δ
autogpt/llm_utils.py 44.95% <0.00%> (-12.99%) :arrow_down:
autogpt/api_manager.py 80.32% <46.66%> (-10.98%) :arrow_down:

... and 14 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Apr 26 '23 03:04 codecov[bot]

This is limited by tokens or something, if someone manages to get it working correctly could be huge.

BillSchumacher avatar Apr 26 '23 03:04 BillSchumacher

Make this a plug-in

ntindle avatar Apr 26 '23 09:04 ntindle

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Apr 26 '23 16:04 github-actions[bot]

would love to see it merged

shayzluf avatar Apr 27 '23 14:04 shayzluf