{"id":24849275,"url":"https://github.com/bugbiteme/cocktail-ai-api","last_synced_at":"2025-03-26T11:25:29.550Z","repository":{"id":213155864,"uuid":"733175301","full_name":"bugbiteme/cocktail-ai-api","owner":"bugbiteme","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-19T23:41:25.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T12:36:09.887Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugbiteme.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}},"created_at":"2023-12-18T18:21:51.000Z","updated_at":"2023-12-20T18:24:50.000Z","dependencies_parsed_at":"2025-01-31T12:42:40.062Z","dependency_job_id":null,"html_url":"https://github.com/bugbiteme/cocktail-ai-api","commit_stats":null,"previous_names":["bugbiteme/cocktail-ai","bugbiteme/cocktail-ai-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Fcocktail-ai-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Fcocktail-ai-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Fcocktail-ai-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugbiteme%2Fcocktail-ai-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugbiteme","download_url":"https://codeload.github.com/bugbiteme/cocktail-ai-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245642645,"owners_count":20648893,"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":[],"created_at":"2025-01-31T12:30:26.346Z","updated_at":"2025-03-26T11:25:29.531Z","avatar_url":"https://github.com/bugbiteme.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cocktail-ai-api\n\nRestAPI integration to openAI and DALL-E to create a cocktail recipe based on a prompt.  \n\nAPI call will also return a DALL-E generated image based on the cocktail.  \n\n`OPENAI_API_KEY` is an environment variable on your system on in your container that has your OpenAI API key\n\nTo be called from web front end.\n\nTo build and run a container:  \n\n```\npodman build -t cocktail-ai .\npodman run -e OPENAI_API_KEY=$OPENAI_API_KEY -e DEBUG=[true/false] -p 8000:8080 cocktail-ai\n```\n\nThis command runs the podman container, mapping port 8000 on your local machine to port 8080 in the podman container (which your FastAPI app should be listening on).  \n  \n## To test locally\n\nIf you're not already doing so, consider using a virtual environment. This isolates your project's dependencies from the global Python environment and can often resolve conflicts and dependency issues.  \n  \n```\npython -m venv venv\nsource venv/bin/activate  # For Unix or MacOS\nvenv\\Scripts\\activate     # For Windows\n\npip install --upgrade pip\npip install -r requirements.txt\n\nexport OPENAI_API_KEY=\u003cyour own OpenAI key\u003e\n\nexport DEBUG=true #to call mock API that is free and fast for testing purposes\n\nuvicorn main:app --reload\n```\n\nNote: If using OpenShift DevSpaces, there is no need to create a virtual environment (venv). Also no need to run pip install locally.\n\n## To clean up python virtual environment\n- If you are currently inside a virtual environment, you'll need to deactivate it first. You can do this by running the deactivate command in your terminal or command prompt.  \n\n```\ndeactivate\n```\n\nThis will return you to your system's default Python environment.  \n  \nOnce you've deactivated the virtual environment, you can simply delete its directory to remove it completely. The virtual environment is just a directory containing all the necessary files, so removing this directory will delete the environment.\n\n```\nrm -rf venv  # Unix/Linux/MacOS\nrmdir /s /q venv  # Windows\n```\nFor some swagger action:\n\n```\n\u003curl\u003e/docs\n\u003curl\u003e/redocs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugbiteme%2Fcocktail-ai-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugbiteme%2Fcocktail-ai-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugbiteme%2Fcocktail-ai-api/lists"}