{"id":23149260,"url":"https://github.com/antares0982/openaisession","last_synced_at":"2025-07-09T09:05:32.366Z","repository":{"id":202812437,"uuid":"631930108","full_name":"Antares0982/OpenAISession","owner":"Antares0982","description":"OpenAI session server","archived":false,"fork":false,"pushed_at":"2025-05-25T10:37:19.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-25T11:32:34.928Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Antares0982.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-24T11:08:19.000Z","updated_at":"2025-05-25T10:37:22.000Z","dependencies_parsed_at":"2024-03-24T10:30:22.706Z","dependency_job_id":"ef04fc03-b073-4ce1-b709-d936adc53a9b","html_url":"https://github.com/Antares0982/OpenAISession","commit_stats":null,"previous_names":["antares0982/openaisession"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Antares0982/OpenAISession","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antares0982%2FOpenAISession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antares0982%2FOpenAISession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antares0982%2FOpenAISession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antares0982%2FOpenAISession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Antares0982","download_url":"https://codeload.github.com/Antares0982/OpenAISession/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antares0982%2FOpenAISession/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262132651,"owners_count":23264039,"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-17T17:16:26.242Z","updated_at":"2025-06-26T19:33:06.279Z","avatar_url":"https://github.com/Antares0982.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAISession\nOpenAI session server\n\n### API\n\n#### `/api`, methods: `POST`\n\ndata format: JSON.\n\nreturns: JSON object:\n\n```json\n{\n    \"text\": \"response message\",\n    \"token_in\": 100,\n    \"token_out\": 50\n}\n```\n\nJSON fields:\n\n* `\"sid\"`: session id, int (required)\n* `\"msg\"`: message to send, string (required)\n* `\"system_msg\"`: system message to override, string (optional, default not to override). If provided, the system message of this session will be replaced by the new message in later API calls.\n* `\"model\"`: model to use, string (optional, default `\"GPT4\"`). Supported values:\n  * `\"GPT3_5\"`\n  * `\"GPT3_5_0301\"`\n  * `\"GPT4\"`\n  * `\"GPT4_0314\"`\n  * `\"GPT4_32K\"`\n  * `\"GPT4_32K_0314\"`\n\n#### `/create`, methods: `POST`\n\ndata format: JSON.\n\nreturns: the real session id (sid) to use in `/api`.\n\nJSON fields:\n\n* `\"sid\"` hint `sid`, (optional). If provided and the value is unoccupied, the server returns the value as `sid`. Otherwise, return a new unoccupied `sid`.\n\n* `system_msg`: system message for this session, string (optional, default `\"You are a helpful assistant.\"`)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantares0982%2Fopenaisession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantares0982%2Fopenaisession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantares0982%2Fopenaisession/lists"}