{"id":13421831,"url":"https://github.com/MisterJimson/chatgpt_api_dart","last_synced_at":"2025-03-15T10:31:27.989Z","repository":{"id":64271524,"uuid":"574578100","full_name":"MisterJimson/chatgpt_api_dart","owner":"MisterJimson","description":"Dart client for the unofficial ChatGPT API","archived":false,"fork":false,"pushed_at":"2022-12-06T18:23:38.000Z","size":302,"stargazers_count":56,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-27T22:28:14.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/MisterJimson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-05T16:06:42.000Z","updated_at":"2024-10-22T22:58:09.000Z","dependencies_parsed_at":"2023-01-15T07:45:31.864Z","dependency_job_id":null,"html_url":"https://github.com/MisterJimson/chatgpt_api_dart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisterJimson%2Fchatgpt_api_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisterJimson%2Fchatgpt_api_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisterJimson%2Fchatgpt_api_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisterJimson%2Fchatgpt_api_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MisterJimson","download_url":"https://codeload.github.com/MisterJimson/chatgpt_api_dart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719043,"owners_count":20336591,"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-07-30T23:00:31.338Z","updated_at":"2025-03-15T10:31:27.193Z","avatar_url":"https://github.com/MisterJimson.png","language":"C++","funding_links":[],"categories":["Applications","Uncategorized","Official Resources","Developer Libraries, SDKs, and APIs","API tools","Thanks to all the contributors!","SDK, Libraries, Frameworks","Languages","開發工具（API、SDK）"],"sub_categories":["APIs \u0026 Clients","Uncategorized","API tools","Dart","JavaScript","Other sdk/libraries","反向代理網站（Reverse Proxy）"],"readme":"# ChatGPT API Dart\nDart client for the unofficial ChatGPT API\n\nPorted from https://github.com/transitive-bullshit/chatgpt-api\n\n## Intro\n\nThis package is a Dart wrapper around [ChatGPT](https://openai.com/blog/chatgpt) by [OpenAI](https://openai.com).\n\nYou can use it to start building projects powered by ChatGPT like chatbots, websites, etc...\n\n## Demo\n\nhttps://user-images.githubusercontent.com/7351329/205991375-d0125d59-6fa4-456d-b4fa-a23c94dc1841.mp4\n\n## How it works\n\nThis package requires a valid session token from ChatGPT to access it's unofficial REST API.\n\nTo get a session token:\n\n1. Go to https://chat.openai.com/chat and log in or sign up.\n2. Open dev tools.\n3. Open `Application` \u003e `Cookies`\n4. Copy the value for `__Secure-next-auth.session-token` and save it to your environment.\n\nWhen you create the `GptChatApi` client, pass it this token.\n\n## Status\nThis project was a very quick port of the node version, it requires testing and changes to make it more robust and useable.\n\n## Development\n\nCreate these files and add your session token to run the tests and example respectively:\n- `test/session_token.dart`\n- `example/lib/session_token.dart`\n\nShould look something like this:\n```dart\nconst SESSION_TOKEN = 'my session token from https://chat.openai.com/chat';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMisterJimson%2Fchatgpt_api_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMisterJimson%2Fchatgpt_api_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMisterJimson%2Fchatgpt_api_dart/lists"}