Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where hugging face response was not correct type
Bro fuck Python for real this is garbage, any other language would treat types as being real and not just a suggestion. I also had to adjust the way we load in hugging face key because I got rate limited. We NEED to have more clear way to set API keys in `aiconfig/.env` file though, or else people won't know how to use it! cc @tanya-rai let's add an FAQ/README similar to what we have in the cookbooks: https://github.com/lastmile-ai/aiconfig/blob/3dcf70bcddda7f7041c3bfb6e5d4b6c9a7abd4ab/cookbooks/Getting-Started/getting_started.ipynb?short_path=dcb1340#L23-L25 We need to do this for keys - HUGGING_FACE_API_TOKEN - ANYSCALE_ENDPOINT_API_KEY - OPENAI_API_KEY ## Testing Connected to local editor (you'll have to modify the `max_tokens` setting) and runs now. We should also have automated testing for this hugging face model parser. Created task for it in #768 <img width="1512" alt="Screenshot 2024-01-05 at 00 47 51" src="https://github.com/lastmile-ai/aiconfig/assets/151060367/5ecae48a-c0cd-43cf-a7ed-ccc74929c6b3">
- Loading branch information