{"id":28995239,"url":"https://github.com/sertrafurr/githubaipy","last_synced_at":"2026-04-30T20:32:49.724Z","repository":{"id":275216154,"uuid":"925446736","full_name":"SertraFurr/GithubAIPy","owner":"SertraFurr","description":"Small python wrapper of Github Models API","archived":false,"fork":false,"pushed_at":"2025-01-31T22:42:53.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T03:39:08.760Z","etag":null,"topics":["ai","api","chatgpt","cohere","deepseek","github","github-ai","github-models","jais","llama","mixtral","models","package","python","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Python","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/SertraFurr.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,"zenodo":null}},"created_at":"2025-01-31T22:35:11.000Z","updated_at":"2025-01-31T22:53:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdff6364-2776-4307-8458-a3336c2ca369","html_url":"https://github.com/SertraFurr/GithubAIPy","commit_stats":null,"previous_names":["ramona-flower/githubaipy","cyn-ically/githubaipy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SertraFurr/GithubAIPy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SertraFurr%2FGithubAIPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SertraFurr%2FGithubAIPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SertraFurr%2FGithubAIPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SertraFurr%2FGithubAIPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SertraFurr","download_url":"https://codeload.github.com/SertraFurr/GithubAIPy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SertraFurr%2FGithubAIPy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261807928,"owners_count":23212683,"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","api","chatgpt","cohere","deepseek","github","github-ai","github-models","jais","llama","mixtral","models","package","python","wrapper"],"created_at":"2025-06-25T05:00:34.409Z","updated_at":"2026-04-09T08:38:13.921Z","avatar_url":"https://github.com/SertraFurr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# GithubAIPy\n\nThey released this recently, so why not make a wrapper of it, to use everywhere !\n\nA Python package to interact with GitHub AI models. Easily authenticate and query AI models using a simple and intuitive interface.\n\n## Installation\n\nInstall the package via pip:\n\n```bash\npip install GithubAIPy\n```\n\n# Quick Guide: Get GitHub Bearer Token Using Chrome DevTools\nGo to:\nhttps://github.com/marketplace/models/azure-openai/gpt-4o/playground.\n\nOpen DevTools: F12 → Network tab.\n\nSend a message in the playground.\n\nIn DevTools, find the completions request → check Headers → copy the Authorization: Bearer \u003ctoken\u003e value.\n\n⚠️ Warning: Keep your token private! \n\nTo use it, just put the full cookie with bearer before !\n# Usage\n## Authentication\nauthenticate using your GitHub Bearer token:\n\n```py\nfrom GithubAIPy import login\n\nlogin(\"your_bearer_token_here\")\n\n```\n\n## Querying a Model\nUse the ask function to send a query to a specific AI model:\n\n```python\n\nfrom GithubAIPy import ask\n\nresponse = ask(\"Meta-Llama-3-70B-Instruct\", \"What is the capital of France?\")\nprint(response)\n\n```\n## Streaming Responses\nAsk function supports streaming responses for real-time interaction:\n```\nresponse = ask(\"Meta-Llama-3-70B-Instruct\", \"Explain quantum computing in simple terms.\", stream=True)\n```\n\n# Supported AI Models\n\nBelow is a list of supported AI models. You can use any of these models with the ask function.\n\n## Supported AI Models\n\nBelow is a list of supported AI models. You can use any of these models with the `ask` function.\n\n| Model Name                  | | | \n|-----------------------------|-----------------------------|-----------------------------|\n| gpt-4o                      | gpt-4o-mini                 | o1-mini                     |\n| o1-preview                  | o3-mini                     | text-embedding-3-large      |\n| text-embedding-3-small      | Phi-3.5-MoE-instruct        | Phi-3.5-mini-instruct       |\n| Phi-3.5-vision-instruct     | Phi-3-medium-128k-instruct  | Phi-3-medium-4k-instruct    |\n| Phi-3-mini-128k-instruct    | Phi-3-mini-4k-instruct      | Phi-3-small-128k-instruct   |\n| Phi-3-small-8k-instruct     | Phi-4                       | AI21-Jamba-1.5-Large        |\n| AI21-Jamba-1.5-Mini         | Codestral-2501              | Cohere-command-r            |\n| Cohere-command-r-08-2024    | Cohere-command-r-plus       | Cohere-command-r-plus-08-2024|\n| Cohere-embed-v3-english     | Cohere-embed-v3-multilingual| DeepSeek-R1                 |\n| Llama-3.2-11B-Vision-Instruct| Llama-3.2-90B-Vision-Instruct| Llama-3.3-70B-Instruct      |\n| Meta-Llama-3.1-405B-Instruct| Meta-Llama-3.1-70B-Instruct | Meta-Llama-3.1-8B-Instruct  |\n| Meta-Llama-3-70B-Instruct   | Meta-Llama-3-8B-Instruct    | Ministral-3B                |\n| Mistral-Large-2411          | Mistral-Nemo                | Mistral-large               |\n| Mistral-large-2407          | Mistral-small               | jais-30b-chat               |\n# Examples\nExample 1: Simple Query\n```python\n\nresponse = ask(\"gpt-4o\", \"What is the meaning of life?\")\nprint(response)\n\n```\n\n# Example 2: Streaming Response\n```python\n\nresponse = ask(\"Meta-Llama-3-70B-Instruct\", \"Explain the theory of relativity.\", stream=True)\n```\n\n\nExample 3: Using a Different Model\n\n```python\n\nresponse = ask(\"Mistral-Large-2411\", \"Write a Python function to calculate the Fibonacci sequence.\")\nprint(response)\n\n```\n\n# Contributing\nContributions are welcome! If you'd like to contribute, please follow these steps:\n\nFork the repository.\n\nCreate a new branch (git checkout -b feature/YourFeatureName).\n\nCommit your changes (git commit -m 'Add some feature').\n\nPush to the branch (git push origin feature/YourFeatureName).\n\nOpen a pull request.\n\n# License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\nSupport\nFor issues or feature requests, please open an issue on the GitHub repository.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsertrafurr%2Fgithubaipy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsertrafurr%2Fgithubaipy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsertrafurr%2Fgithubaipy/lists"}