{"id":20984476,"url":"https://github.com/pycui/universal-api-cohere","last_synced_at":"2026-04-20T16:32:54.301Z","repository":{"id":241974632,"uuid":"808353092","full_name":"pycui/universal-api-cohere","owner":"pycui","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-30T22:41:32.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T10:45:06.185Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pycui.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}},"created_at":"2024-05-30T22:31:31.000Z","updated_at":"2025-02-15T09:39:55.000Z","dependencies_parsed_at":"2024-05-31T00:42:38.777Z","dependency_job_id":"7d09c3df-f354-4099-b27c-d919fd8e9169","html_url":"https://github.com/pycui/universal-api-cohere","commit_stats":null,"previous_names":["pycui/universal-api-cohere"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pycui/universal-api-cohere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycui%2Funiversal-api-cohere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycui%2Funiversal-api-cohere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycui%2Funiversal-api-cohere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycui%2Funiversal-api-cohere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pycui","download_url":"https://codeload.github.com/pycui/universal-api-cohere/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycui%2Funiversal-api-cohere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28118328,"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","status":"online","status_checked_at":"2025-12-29T02:00:07.021Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-19T05:53:37.740Z","updated_at":"2025-12-29T16:05:39.132Z","avatar_url":"https://github.com/pycui.png","language":"Python","readme":"# Universal API\n\n*Don't know how to implement a function? Let Universal API help you on the fly!*\n\nThis is a non-serious library that can implement any functions on the fly using LLMs. To use it, simply call a function with a descriptive name and parameters, and it will be defined, implemented and called at runtime. Generated functions are cached so you don't pay for things that are already implemented.\n\n(Note: this repo is based on my repo at https://github.com/pycui/universal-api and adopted to Cohere API.)\n\n## Usage\n\n```python\napi = UniversalAPI()\n# Start to call arbitrary functions \nprint(api.sort([3, 2, 1])) # returns [1, 2, 3]\nprint(api.sort([4, 3, 2, 1])) # returns [1, 2, 3, 4] using cached implementation\nprint(api.sort([1, 2, 3], reverse=True)) # returns [3, 2, 1]\nprint(api.add(1, 2)) # returns 3\nprint(api.reverse('hello')) # returns 'olleh'\napi.fizzbuzz(15) # prints the fizzbuzz sequence up to 15\napi.print_picachu() # prints an ASCII art of Picachu\n```\n\n## Warning\nThis library will execute unverified code in your local machine. It's **NOT** safe to run in production (or really, any serious environment).\n\n## Notes\nBy default this library uses OpenAI GPT API. You can modify environment variables like `OPENAI_BASE_URL` to use other LLM endpoints (e.g. Anyscale Endpoint), which allows you to run on other models like the LLaMa series. It's also possible to use local LLMs.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycui%2Funiversal-api-cohere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycui%2Funiversal-api-cohere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycui%2Funiversal-api-cohere/lists"}