{"id":23057435,"url":"https://github.com/concaption/assistant-api-integration","last_synced_at":"2025-04-03T06:12:53.864Z","repository":{"id":209587823,"uuid":"724453068","full_name":"concaption/assistant-api-integration","owner":"concaption","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-28T05:50:42.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T19:45:05.843Z","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/concaption.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}},"created_at":"2023-11-28T05:22:22.000Z","updated_at":"2023-12-28T21:28:49.000Z","dependencies_parsed_at":"2023-11-28T06:45:22.477Z","dependency_job_id":null,"html_url":"https://github.com/concaption/assistant-api-integration","commit_stats":null,"previous_names":["concaption/assistant-api-integration"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concaption%2Fassistant-api-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concaption%2Fassistant-api-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concaption%2Fassistant-api-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concaption%2Fassistant-api-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/concaption","download_url":"https://codeload.github.com/concaption/assistant-api-integration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944389,"owners_count":20858773,"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":"2024-12-16T02:12:17.899Z","updated_at":"2025-04-03T06:12:53.841Z","avatar_url":"https://github.com/concaption.png","language":"Python","readme":"\n\n# OpenAI Assistant Integration\n\nTODO: TO migrate it into FastAPI.\n\nThis Flask application integrates with OpenAI's API to create and manage conversation threads, allowing users to interact with an AI assistant.\n\n## Getting Started\n\nThese instructions will help you get the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\n- Python 3.10 or higher\n- Flask\n- OpenAI Python SDK\n\n### Installing\n\n1. **Clone the Repository**\n   ```\n   git clone [repository URL]\n   ```\n\n2. **Navigate to the Project Directory**\n   ```\n   cd [local repository]\n   ```\n\n3. **Install Required Packages**\n   ```\n   pip install -r requirements.txt\n   ```\n\n4. **Set Up Environment Variables**\n   - Create a `.env` file in your project root directory.\n   - Add the following line to the `.env` file:\n     ```\n     OPENAI_API_KEY=your_openai_api_key_here\n     ```\n   - Replace `your_openai_api_key_here` with your actual OpenAI API key.\n\n### Running the Application\n\n1. **Start the Flask Server**\n   ```\n   flask run\n   ```\n\n2. **Interact with the Application**\n   - Send a GET request to `/start` to initiate a new conversation thread.\n   - Send a POST request to `/chat` with `thread_id` and `message` in the JSON body to interact with the assistant.\n\n## Notes\n\n- The application checks for the correct version of the OpenAI SDK and initializes a Flask server.\n- It handles creating new conversation threads and processing user messages.\n- Ensure your OpenAI API key is kept secure and not exposed.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcaption%2Fassistant-api-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconcaption%2Fassistant-api-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcaption%2Fassistant-api-integration/lists"}