HipcallOpenai
Unofficial OpenAI API Wrapper written in Elixir.
Installation
If available in Hex, the package can be installed
by adding hipcall_openai to your list of dependencies in mix.exs:
def deps do
[
{:hipcall_openai, "~> 0.5.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/hipcall_openai.
Configuration override
Client library configuration can be overwritten in runtime by passing a %HipcallOpenai.Config{} struct as last argument of the function you need to use. For instance if you need to use a different api_key you can simply do:
config_override = %HipcallOpenai.Config{
api_key: "mTRwVrbZ4aoHTyjMepleT3BlbkFJ7zZYazuN7F16XuY3WErl",
api_organization: "org-blalba"
}
# pass the overriden configuration as last argument of the function
HipcallOpenai.models(config_override)Use
Documentation for using, please check the HipcallOpenai module.
Roadmap
-
Add
Modelsendpoint -
Add
Chatendpoint -
Add
Audioendpoints -
Add
Embeddingsendpoint -
Add
Fine-tuningendpoint -
Add
Filesendpoint -
Add
Imagesendpoint -
Add
Moderationsendpoint -
Add
Beta - Assistantsendpoint -
Add
Beta - Threadsendpoint -
Add
Beta - Messagesendpoint -
Add
Beta - Runsendpoint -
Add
ToolsorUtilscalculate token, etc.
Hipcall
All Hipcall libraries:
- HipcallDisposableEmail - Simple library checking the email's domain is disposable or not.
- HipcallDeepgram - Unofficial Deepgram API Wrapper written in Elixir.
- HipcallOpenai - Unofficial OpenAI API Wrapper written in Elixir.
- HipcallWhichtech - Find out what the website is built with.