{"id":37078484,"url":"https://github.com/naruminho/cannoli","last_synced_at":"2026-01-14T09:11:16.276Z","repository":{"id":205165962,"uuid":"713583560","full_name":"naruminho/cannoli","owner":"naruminho","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-11T13:29:04.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-04T12:27:43.510Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naruminho.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}},"created_at":"2023-11-02T20:21:26.000Z","updated_at":"2023-11-02T20:42:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f6389d7-9797-4a07-8e6b-917e2e6ba934","html_url":"https://github.com/naruminho/cannoli","commit_stats":null,"previous_names":["naruminho/cannoli"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/naruminho/cannoli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naruminho%2Fcannoli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naruminho%2Fcannoli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naruminho%2Fcannoli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naruminho%2Fcannoli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naruminho","download_url":"https://codeload.github.com/naruminho/cannoli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naruminho%2Fcannoli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T09:11:15.590Z","updated_at":"2026-01-14T09:11:16.268Z","avatar_url":"https://github.com/naruminho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cannoli\n\n#### Install\n\n`!pip install cannoli`\n\n#### Usage Instructions:\n\n**Basic Usage:**\n\nThis example demonstrates how to retrieve the API key from an environment variable named `OPENAI_API_KEY`. It also shows how to use default parameters defined in `default_settings.json`.\n\n```python\n# Create an instance of the Cannoli class\ncnl = Cannoli()\n\n# Ask a question with the quick_question method and store the response in 'ans'\nans = cnl.quick_question(\"What's the boiling point of water?\")\n```\n\n**Customizing Parameters:**\n\nIn this example, the Cannoli class instance is created with a user-provided API key and custom settings, including the choice of engine, custom prompt, token limits, and temperature settings.\n\n```python\n# Instantiate the Cannoli class with a custom API key and setup parameters\napi_key = 'your_api_key_here'\nsetup = {\n    \"engine\": \"gpt-3.5-turbo-instruct\",\n    \"prompt\": \"You are my personal assistant. Please provide the best answer you can.\",\n    \"max_tokens\": 300,\n    \"temperature\": 0.7\n}\ncnl = Cannoli(api_key=api_key, setup=setup)\n\n# Use the quick_question method to ask a question and store the answer in 'ans'\nans = cnl.quick_question(\"What's the boiling point of water?\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaruminho%2Fcannoli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaruminho%2Fcannoli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaruminho%2Fcannoli/lists"}