{"id":27063853,"url":"https://github.com/stephanfward/openai-server-client-chat","last_synced_at":"2025-04-05T16:35:18.046Z","repository":{"id":224204486,"uuid":"762706599","full_name":"StephanFWard/openAI-server-client-chat","owner":"StephanFWard","description":" Simplified example demonstrating how to use gRPC in Python to create a client-server application where a Python script interacts with the GPT-4 language model hosted on a server","archived":false,"fork":false,"pushed_at":"2024-02-24T13:22:06.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-02-24T14:28:37.130Z","etag":null,"topics":["chatgpt","chatgpt-api","gprc","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StephanFWard.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-02-24T13:17:54.000Z","updated_at":"2024-02-24T14:28:38.051Z","dependencies_parsed_at":"2024-02-24T14:38:52.350Z","dependency_job_id":null,"html_url":"https://github.com/StephanFWard/openAI-server-client-chat","commit_stats":null,"previous_names":["stephanfward/openai-server-client-chat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FopenAI-server-client-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FopenAI-server-client-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FopenAI-server-client-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FopenAI-server-client-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanFWard","download_url":"https://codeload.github.com/StephanFWard/openAI-server-client-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247368725,"owners_count":20927913,"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":["chatgpt","chatgpt-api","gprc","python"],"created_at":"2025-04-05T16:35:17.631Z","updated_at":"2025-04-05T16:35:18.037Z","avatar_url":"https://github.com/StephanFWard.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openAI-server-client-chat\n  Simplified example demonstrating how to use gRPC in Python to create a client-server application where a Python script interacts with the GPT-4 language model hosted on a server\n\n  This example demonstrates a basic client-server interaction using gRPC in Python, where the server uses the GPT-4 language model to generate responses to input text received from the client. You can extend it further by handling multiple concurrent requests, implementing error handling, and integrating with real-world applications. \n\n  Clone the repository:\n  git clone https://github.com/your-username/openAI-server-client-chat.git\n\n  Install the necessary dependencies:\n  pip install -r requirements.txt\n\n  Set up your OpenAI API key:\n  Sign up for an account on the OpenAI platform and obtain an API key.\n  Set your API key as an environment variable:\n  '''export OPENAI_API_KEY=\"your-api-key'''\n\n  Start the server by running:\n  python server.py.\n\n  In another terminal window, run:\n  python client.py.\n\n  You should see the client sending input text to the server, and the server responding with text generated by the GPT-4 model.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanfward%2Fopenai-server-client-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephanfward%2Fopenai-server-client-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanfward%2Fopenai-server-client-chat/lists"}