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

Add API support for file contents #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add API support for file contents #59

wants to merge 1 commit into from

Conversation

frm
Copy link

@frm frm commented Jan 17, 2024

Retrieving the contents of a file is an API call that wasn't implemented. This PR adds it, although it's not ideal since we're not streaming the file and everything is kept in memory. I couldn't get streaming to work.

This PR also updates hackney as ssl_verify_fun has some classic issues:

openai.ex (dd48493)
❯ m compile
==> ssl_verify_fun
Compiling 7 files (.erl)
src/ssl_verify_fun_cert_helpers.erl:13:14: can't find include lib "public_key/include/public_key.hrl"
%   13| -include_lib("public_key/include/public_key.hrl").
%     |              ^

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