cyberchitta / openai_ex

Community maintained Elixir library for OpenAI API
https://hexdocs.pm/openai_ex
Apache License 2.0
140 stars 19 forks source link

Livebook only? #97

Closed eugkhp closed 4 months ago

eugkhp commented 4 months ago

Describe the feature or improvement you're requesting

I'm not very familiar with livebook, but was wondering if this lib could be used in a phoenix app? Couldn't find anything in the docs

Additional context

No response

restlessronin commented 4 months ago

@eugkhp sure, there's no reason why you couldn't use it in a phoenix app. The user guide happens to be a livebook so that the documentation is always up-to-date with the library. Otherwise it's a vanilla elixir library.

There has been some demand for more systematic error handling and reporting for the non-interactive use case. This is work in progress and should be complete shortly.

eugkhp commented 4 months ago

Thank you! I could take a look and try to add config and docs for mix, will it be welcome?

restlessronin commented 4 months ago

There is already sample config for Mix. I'm not sure what else is needed, but if you think of something please feel free to submit it.

restlessronin commented 4 months ago

I have removed references to Livebook from the library description to prevent this kind of misconception in the future.