{"id":13808618,"url":"https://github.com/noizu-labs-ml/elixir-openai","last_synced_at":"2025-05-14T02:32:11.108Z","repository":{"id":164929999,"uuid":"624750863","full_name":"noizu-labs-ml/elixir-openai","owner":"noizu-labs-ml","description":"Elixir OpenAi Client","archived":false,"fork":false,"pushed_at":"2023-12-26T11:43:12.000Z","size":131,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-03T17:02:07.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noizu-labs-ml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-07T07:05:43.000Z","updated_at":"2025-03-21T18:27:16.000Z","dependencies_parsed_at":"2024-05-01T15:27:36.858Z","dependency_job_id":"e85ae8d9-00f8-4eac-9732-eecbea0bd97b","html_url":"https://github.com/noizu-labs-ml/elixir-openai","commit_stats":null,"previous_names":["noizu-labs-ml/elixir-openai","noizu-labs/elixir-openai"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noizu-labs-ml%2Felixir-openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noizu-labs-ml%2Felixir-openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noizu-labs-ml%2Felixir-openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noizu-labs-ml%2Felixir-openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noizu-labs-ml","download_url":"https://codeload.github.com/noizu-labs-ml/elixir-openai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253025360,"owners_count":21842413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:01:47.497Z","updated_at":"2025-05-14T02:32:06.089Z","avatar_url":"https://github.com/noizu-labs-ml.png","language":"Elixir","funding_links":[],"categories":["Artificial Intelligence","Clients/Wrappers/Nifs"],"sub_categories":["OpenAI Client"],"readme":"# Noizu.OpenAI\n\nNoizu.OpenAI is an Elixir wrapper for the OpenAI API. It provides a simple and convenient way to interact with OpenAI's powerful AI models for tasks like text generation, completion, translation, image generation, and more.\n\n## Installation\n\nTo install Noizu.OpenAI, add the following to your `mix.exs` file:\n\n```elixir\ndefp deps do\n  [\n    {:noizu_labs_open_ai, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nThen, run `mix deps.get` to fetch the dependencies.\n\n## Configuration\n\nTo configure the Noizu.OpenAI, add the following to your `config.exs` or the appropriate environment-specific config file:\n\n```elixir\nconfig :noizu_openai,\n  openai_api_key: \"your_openai_api_key\",\n  openai_org: \"your_openai_organization_id\" # Optional\n```\n\nReplace `\"your_openai_api_key\"` with your actual OpenAI API key, and `\"your_openai_organization_id\"` with your OpenAI organization ID if applicable.\n\n## Usage\n\nNoizu.OpenAI provides modules for different OpenAI API endpoints:\n\n- [Noizu.OpenAI.Api.Audio](lib/api/audio/README.md)\n- [Noizu.OpenAI.Api.Chat](lib/api/chat/README.md)\n- [Noizu.OpenAI.Api.Completion](lib/api/completion/README.md)\n- [Noizu.OpenAI.Api.Edit](lib/api/edit/README.md)\n- [Noizu.OpenAI.Api.Embedding](lib/api/embedding/README.md)\n- [Noizu.OpenAI.Api.Engine](lib/api/engine/README.md)\n- [Noizu.OpenAI.Api.File](lib/api/file/README.md)\n- [Noizu.OpenAI.Api.FineTune](api/fine_tune/README.md) *deprecated\n- [Noizu.OpenAI.Api.Image](api/image/README.md)\n- [Noizu.OpenAI.Api.Model](api/model/README.md)\n- [Noizu.OpenAI.Api.Thread](api/thread/README.md)\n- [Noizu.OpenAI.Api.Assistant](api/assistant/README.md)\n- [Noizu.OpenAI.Api.FineTuning](api/fine_tuning/README.md)\n\n\nEach module corresponds to a specific functionality provided by the OpenAI API. You can use the functions in these modules to interact with the respective API endpoints.\n\nHere's an example of using the `Noizu.OpenAI.Api.Chat` module to generate a chatbot response:\n\n```elixir\nalias Noizu.OpenAI.Api.Chat\n\nmessages = [\n  %{\"role\" =\u003e \"system\", \"content\" =\u003e \"You are a helpful assistant.\"},\n  %{\"role\" =\u003e \"user\", \"content\" =\u003e \"Who won the world series in 2020?\"},\n]\n\n{:ok, response} = Chat.chat(messages)\n```\n\nRefer to the documentation for each module to learn about the available functions and their usage.\n\n## Documentation\n\nYou can generate the documentation for this project using ExDoc. Run `mix docs` and open the `doc/index.html` file in your browser.\n\n## Tests\n\nTo run the tests for this project, use the command `mix test`.\n\n## Contributing\n\nIf you'd like to contribute to the development of Noizu.OpenAI, please submit a pull request with your changes or open an issue to discuss your proposed changes.\n\n## License\n\nNoizu.OpenAI is released under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoizu-labs-ml%2Felixir-openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoizu-labs-ml%2Felixir-openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoizu-labs-ml%2Felixir-openai/lists"}