{"id":25460947,"url":"https://github.com/uefi-code/az2oaiproxy","last_synced_at":"2026-04-12T07:33:20.734Z","repository":{"id":227775378,"uuid":"772338250","full_name":"UEFI-code/Az2OAIProxy","owner":"UEFI-code","description":"超軽量AzureからのリクエストをOpenAIのAPIに転送ど返送","archived":false,"fork":false,"pushed_at":"2024-03-15T04:46:13.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T17:49:58.120Z","etag":null,"topics":["azure","chatgpt","gpt","llm","openai"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UEFI-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-03-15T01:56:34.000Z","updated_at":"2024-03-15T04:58:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"13436fad-7726-427b-886b-1dab18e7cdd2","html_url":"https://github.com/UEFI-code/Az2OAIProxy","commit_stats":null,"previous_names":["uefi-code/oai2azproxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UEFI-code/Az2OAIProxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FAz2OAIProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FAz2OAIProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FAz2OAIProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FAz2OAIProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UEFI-code","download_url":"https://codeload.github.com/UEFI-code/Az2OAIProxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FAz2OAIProxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31707953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["azure","chatgpt","gpt","llm","openai"],"created_at":"2025-02-18T05:05:29.939Z","updated_at":"2026-04-12T07:33:20.729Z","avatar_url":"https://github.com/UEFI-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure to OpenAI Protocol Proxy\n\nこのプロジェクトは、AzureからのリクエストをOpenAIのAPIに転送するPython Flaskアプリケーションです。Azureからのリクエストを受け取り、それをOpenAIのAPIに転送します。これにより、ユーザーはAzureのプロトコルを使用してOpenAIの機能を利用することができます。\n\n## 機能\n\n- AzureからのリクエストをOpenAIのAPIに転送\n- OpenAIのAPIからのレスポンスをAzureに返送\n\n## セットアップ\n\n1. 必要なライブラリをインストールします：\n\n    ```bash\n    pip install flask\n    ```\n\n2. `app.py`を実行します：\n\n    ```bash\n    python app.py\n    ```\n\n3. Nginxのリバースプロキシ設定：\n\n    このプロジェクトはFlaskアプリケーションであり、本番環境で実行する場合は、通常、NginxなどのWebサーバーをリバースプロキシとして使用します。以下に、基本的なNginxの設定を示します：\n\n    ```nginx\n    server {\n        listen 80;\n        server_name your_domain_or_IP;\n\n        location / {\n            proxy_pass http://localhost:5000;\n            proxy_set_header Host $host;\n            proxy_set_header X-Real-IP $remote_addr;\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        }\n    }\n    ```\n\n    この設定を適用するには、この設定を含むファイルをNginxの設定ディレクトリ（通常は/etc/nginx/sites-available/）に保存し、その後で/etc/nginx/sites-enabled/ディレクトリにシンボリックリンクを作成します。最後に、Nginxをリロードまたは再起動します。\n\n    なお、`your_domain_or_IP`は適切なドメイン名またはIPアドレスに置き換えてください。\n\n    もし、HTTPSを使用欲しい場合は、certbotを使用ください。\n\n    ```bash\n    sudo certbot --nginx\n    ```\n\n## 使用方法\n\nPOSTリクエストを`/chat/\u003cmodel_name\u003e`エンドポイントに送信します。リクエストヘッダーには`api-key`を含め、リクエストボディには`message`、`max_tokens`、`temperature`、`top_p`を含めます。\n\n## 注意事項\n\nこのプロジェクトはデモンストレーション用であり、本番環境での使用は推奨されません。本番環境で使用する場合は、適切なエラーハンドリングとセキュリティ対策を行ってください。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuefi-code%2Faz2oaiproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuefi-code%2Faz2oaiproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuefi-code%2Faz2oaiproxy/lists"}