{"id":19329697,"url":"https://github.com/thalesfsp/openai-assistant","last_synced_at":"2026-05-01T16:32:18.772Z","repository":{"id":229748508,"uuid":"744061957","full_name":"thalesfsp/openai-assistant","owner":"thalesfsp","description":"OpenAI Assistant Integration in Golang and Python","archived":false,"fork":false,"pushed_at":"2024-01-16T15:11:52.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-05T10:50:16.976Z","etag":null,"topics":["api","assistant","chatbot","cli","demo","demonstration","golang","openai","python"],"latest_commit_sha":null,"homepage":"","language":"Go","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/thalesfsp.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}},"created_at":"2024-01-16T14:54:42.000Z","updated_at":"2024-01-16T15:12:47.000Z","dependencies_parsed_at":"2024-03-26T03:56:42.381Z","dependency_job_id":"a14dc924-b302-43ca-a7d2-d9d50895b534","html_url":"https://github.com/thalesfsp/openai-assistant","commit_stats":null,"previous_names":["thalesfsp/openai-assistant"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thalesfsp/openai-assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesfsp%2Fopenai-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesfsp%2Fopenai-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesfsp%2Fopenai-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesfsp%2Fopenai-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thalesfsp","download_url":"https://codeload.github.com/thalesfsp/openai-assistant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesfsp%2Fopenai-assistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32505075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["api","assistant","chatbot","cli","demo","demonstration","golang","openai","python"],"created_at":"2024-11-10T02:29:29.147Z","updated_at":"2026-05-01T16:32:18.753Z","avatar_url":"https://github.com/thalesfsp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAI Assistant Integration\n\nThis project demonstrates the integration of the OpenAI Assistant feature and API in both Golang (CLI) and Python (API).\n\n## Installation\n\nClone the repository and navigate to the project directory:\n\n```bash\ngit clone \u003crepository-url\u003e\ncd \u003cproject-directory\u003e\n```\n\nInstall the Go dependencies:\n\n```\ngo mod download\n```\n\nSet up the Python environment:\n\n```Bash\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Usage\n\n### Golang CLI\n\nYou can run the Golang CLI project with the following commands:\n\n```\ngo run main.go \"Some question\"\ngo run main.go \"Some question\" \"thread_123\"\ngo run main.go \"Some question\" \"thread_123\" \"msg_AZS\"\n```\n\n### Python API\n\nTo run the Python API project:\n\n```\npython3 main.py\n```\n\nIn another terminal, you can send requests to the API:\n\n```Bash\nQUESTION=\"Some question\" curl --location 'http://localhost:38234/api/v1/message' \\\n    --header 'Content-Type: application/json' \\\n    --data '{\n    \"question\": \"$QUESTION\",\n}'\n\nQUESTION=\"Some question\" curl --location 'http://localhost:38234/api/v1/message' \\\n    --header 'Content-Type: application/json' \\\n    --data '{\n    \"question\": \"$QUESTION\",\n    \"thread_id\": \"thread_123\",\n}'\n\nQUESTION=\"Some question\" curl --location 'http://localhost:38234/api/v1/message' \\\n    --header 'Content-Type: application/json' \\\n    --data '{\n    \"question\": \"$QUESTION\",\n    \"thread_id\": \"thread_123\",\n    \"after_message_id\": \"msg_AZS\"\n}'\n```\n\n## Contributing\n\nContributions are welcome. Please make sure to update tests as appropriate.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesfsp%2Fopenai-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthalesfsp%2Fopenai-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesfsp%2Fopenai-assistant/lists"}