{"id":13615834,"url":"https://github.com/Azzeccagarbugli/openai_client","last_synced_at":"2025-04-13T21:31:41.028Z","repository":{"id":64624321,"uuid":"564478195","full_name":"Azzeccagarbugli/openai_client","owner":"Azzeccagarbugli","description":"An unofficial, platform independent, client for accessing different AI models developed by OpenAI","archived":false,"fork":false,"pushed_at":"2024-05-04T08:46:07.000Z","size":94,"stargazers_count":38,"open_issues_count":6,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-07T23:40:02.972Z","etag":null,"topics":["dart","flutter","gpt-3","ia","openai"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/openai_client","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Azzeccagarbugli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-11-10T20:04:57.000Z","updated_at":"2024-06-24T17:25:56.000Z","dependencies_parsed_at":"2024-01-12T23:43:08.022Z","dependency_job_id":"91f464f6-9ebe-47dd-828d-baf07e9e5011","html_url":"https://github.com/Azzeccagarbugli/openai_client","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azzeccagarbugli%2Fopenai_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azzeccagarbugli%2Fopenai_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azzeccagarbugli%2Fopenai_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azzeccagarbugli%2Fopenai_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azzeccagarbugli","download_url":"https://codeload.github.com/Azzeccagarbugli/openai_client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248786367,"owners_count":21161436,"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":["dart","flutter","gpt-3","ia","openai"],"created_at":"2024-08-01T20:01:18.827Z","updated_at":"2025-04-13T21:31:36.008Z","avatar_url":"https://github.com/Azzeccagarbugli.png","language":"Dart","funding_links":[],"categories":["Developer Libraries, SDKs, and APIs","SDK, Libraries, Frameworks"],"sub_categories":["Dart","Other sdk/libraries"],"readme":"![alt Banner of the openai_client project](https://raw.githubusercontent.com/Azzeccagarbugli/openai_client/main/assets/banner.png)\n\nThe [**OpenAI API**](https://beta.openai.com/docs/introduction) can be applied to virtually any task that involves understanding or generating natural language or code. They offer a spectrum of models with different levels of power suitable for different tasks, as well as the ability to fine-tune your own custom models.\n\n# ℹ️ Info\n\nThis is an unofficial client, written purely in Dart that allows you to _easily_ use the API in your Dart or Flutter projects.\n\n|                                   APIs                                    |     Dart class      | Implementation status |\n| :-----------------------------------------------------------------------: | :-----------------: | :-------------------: |\n|      [**Models**](https://beta.openai.com/docs/api-reference/models)      |   `OpenAIModels`    |          ✅           |\n| [**Completions**](https://beta.openai.com/docs/api-reference/completions) | `OpenAICompletions` |          ✅           |\n|        [**Chat**](https://beta.openai.com/docs/api-reference/chat)        |    `OpenAIChat`     |          ✅           |\n|       [**Edits**](https://beta.openai.com/docs/api-reference/edits)       |    `OpenAIEdits`    |          ✅           |\n|      [**Images**](https://beta.openai.com/docs/api-reference/images)      |   `OpenAIImages`    |          ✅           |\n|  [**Embeddings**](https://beta.openai.com/docs/api-reference/embeddings)  | `OpenAIEmbeddings`  |          ✅           |\n|       [**Files**](https://beta.openai.com/docs/api-reference/files)       |    `Not present`    |          ❌           |\n|  [**Fine-tunes**](https://beta.openai.com/docs/api-reference/fine-tunes)  |    `Not present`    |          ❌           |\n| [**Moderations**](https://beta.openai.com/docs/api-reference/moderations) | `OpenAIModerations` |          ✅           |\n\n# 🧰 Installation\n\nYou can install the package by adding it to your `pubspec.yaml` file.\n\n```yaml\ndependencies:\n  openai_client: last_version\n```\n\nAfter the installation you would just need to import the package in your project.\n\n```dart\nimport 'package:openai_client/openai_client.dart';\n```\n\n# 🚀 Getting Started\n\nIn order to use the API, you need to have an API key. You can get one [**here**](https://beta.openai.com/account/api-keys) and once you have it, you can use it in the client passing the key itself in the `OpenAIConfiguration` constructor.\n\n```dart\n// Create the configuration\nfinal conf = OpenAIConfiguration(\n    apiKey: 'Your API key',\n    organizationId: 'Your organization ID', // Optional\n);\n\n// Create a new client\nfinal client = OpenAIClient(configuration: conf);\n```\n\n# 🐛 Debugging\n\nFor testing and debugging purposes, you can use the built-in `Logger` to more easily check the status of requests and responses.\n\nBy default, the `Logger` is disabled. You can enable it by setting the `enableLogging` property to `true`.\n\n```dart\n// The instance of the client with the logger enabled\nfinal client = OpenAIClient(\n    ...\n    enableLogging: true,\n);\n```\n\n# 🎯 Examples\n\nThe provided example is a simple command line application that allows you to test the client. You can find it in the `example` folder.\n\n# 📚 Documentation\n\nThe full documentation of the project is available [**here**](https://pub.dev/documentation/openai_client/latest/). All the methods are documented, and you can easily check the parameters that you can pass to them.\n\n# 🤝 Contributing\n\nIf you want to contribute to `openai_client`, please make sure to review the [contribution guidelines](https://github.com/Azzeccagarbugli/openai_client/blob/master/CONTRIBUTING.md).\n\nThis project makes use of [GitHub issues](https://github.com/Azzeccagarbugli/openai_client/issues) for\ntracking **requests and bugs only**, so please _don't_ use issues for general questions and discussion.\n\n# 🪪 License\n\nThis project is licensed under the [**BSD-3-Clause**](https://raw.githubusercontent.com/Azzeccagarbugli/openai_client/main/LICENSE).\n\nFurthermore, it's not affiliated with **OpenAI** in any way.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAzzeccagarbugli%2Fopenai_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAzzeccagarbugli%2Fopenai_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAzzeccagarbugli%2Fopenai_client/lists"}