{"id":15154189,"url":"https://github.com/x-actions/aigc2md","last_synced_at":"2025-10-24T09:30:55.640Z","repository":{"id":256015457,"uuid":"854008942","full_name":"x-actions/aigc2md","owner":"x-actions","description":"Convert Open webui chats to hugo markdown","archived":false,"fork":false,"pushed_at":"2024-09-22T07:43:46.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-31T00:42:36.872Z","etag":null,"topics":["ai","aigc","hugo","markdown","openwebui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x-actions.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-08T06:36:22.000Z","updated_at":"2024-09-22T07:43:50.000Z","dependencies_parsed_at":"2024-09-08T14:28:31.073Z","dependency_job_id":"07847b4a-a5e4-4d7a-b2aa-bc588d996d45","html_url":"https://github.com/x-actions/aigc2md","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"e73b276977cc4191c5069ef4e7c615be198bb94d"},"previous_names":["x-actions/python3-aigc2md","x-actions/aigc2md-python","x-actions/aigc2md"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-actions%2Faigc2md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-actions%2Faigc2md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-actions%2Faigc2md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-actions%2Faigc2md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-actions","download_url":"https://codeload.github.com/x-actions/aigc2md/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237944182,"owners_count":19391589,"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":["ai","aigc","hugo","markdown","openwebui"],"created_at":"2024-09-26T17:04:10.069Z","updated_at":"2025-10-24T09:30:55.635Z","avatar_url":"https://github.com/x-actions.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aigc2md\n\n[![PyPI-aigc2md](https://img.shields.io/pypi/v/aigc2md.svg?maxAge=3600)](https://pypi.org/project/aigc2md/)\n\nconvert AIGC to hugo markdown, current only support OpenWebUI API\n将 AIGC 生产的内容转化为 hugo markdown 格式，当前仅支持调用 OpenWebUI API\n\n## How to Use by Github Actions\n\n```\n    - name: convert AIGC to hugo markdown\n      uses: x-actions/aigc2md@v1\n      env:\n        PYOPENWEBUI_BEARER_TOKEN: \"\u003cJWT\u003e\"\n        LOG_LEVEL: \"DEBUG\"\n```\n\n## use as cli\n\n```\n$ pip install aigc2md\n\n$ aigc2md --help\nusage: aigc2md [--version] [--debug] \u003csubcommand\u003e ...\n\nCommand-line interface for convert AIGC to hugo markdown.\n\nPositional arguments:\n  \u003csubcommand\u003e\n    chats          chats actions.\n    render         render actions.\n    users          list users.\n    bash-completion\n                   Prints all of the commands and options to stdout so that the aigc2md.bash_completion script\n                   doesn't have to hard code them.\n    help           Display help about this program or one of its subcommands.\n\nOptions:\n  --version        show program's version number and exit\n  --debug          Print debugging output.\n\nSee \"aigc2md help COMMAND\" for help on a specific command.\n\n$ aigc2md users\n+--------------------------------------+--------+---------------------+---------+------------------------------------------------+------------+----------------+\n|                  ID                  |  name  |        email        |   role  |                     system                     | created_at | last_active_at |\n+--------------------------------------+--------+---------------------+---------+------------------------------------------------+------------+----------------+\n| a856afee-389e-4fc2-9431-dbac432912a1 | 谢先斌 |   me@xiexianbin.cn  |  admin  | 使用中文回答，除代码和专用名词外尽量不使用英文 | 2024-08-11 09:35:00 |   2024-08-11 09:35:00   |\n+--------------------------------------+--------+---------------------+---------+------------------------------------------------+------------+----------------+\n\n$ aigc2md chats\n+--------------------------------------+---------------------------------+---------------------+---------------------+\n|                  ID                  |              title              |      updated_at     |      created_at     |\n+--------------------------------------+---------------------------------+---------------------+---------------------+\n| ef0bdafc-045c-41eb-aba5-c841e31c2fd8 |          😊 简单问候语          | 2024-09-16 17:20:27 | 2024-09-16 17:20:19 |\n+--------------------------------------+---------------------------------+---------------------+---------------------+\n\n$ aigc2md render --id cab178a2-ba80-4008-a72d-1eb41c21e6c4\nLama3.1介绍一下 render to /Users/xiexianbin/workspace/code/github.com/x-actions/aigc2md-python/output/Lama3.1介绍一下.md ...\n```\n\n## Dev and Test\n\n- local run\n\n```\n# create venv\npython3 -m venv .venv\nsource .venv/bin/activate\n\n# install\npip3 install -r requirements.txt\n\n# set env\nexport PYOPENWEBUI_BEARER_TOKEN=\"\u003cJWT\u003e\"\n\n# dev\nexport PYTHONPATH=$PYTHONPATH:$(pwd)\npython3 aigc2md/shell.py --help\npython3 aigc2md/shell.py help xxx\n```\n\n- tests\n\n```\npython3 -m unittest aigc2md.tests.unit.test_http.HTTPTestCase.test_http_get\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-actions%2Faigc2md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-actions%2Faigc2md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-actions%2Faigc2md/lists"}