Releases: leokwsw/go-chatgpt-api
Releases · leokwsw/go-chatgpt-api
Release 2024-04-18-172856
Improved error handling and added audio transcription The code changes include improved error handling in the image generation script. Now, instead of directly printing the URL, it checks if there's an error in the response and prints that instead. If no error is found, it proceeds to print the URL as before. In addition, new functionality for audio transcription and speech creation has been introduced. This update is reflected in the README file along with other minor formatting adjustments for better readability.
Release 2024-04-18-150551
Added audio transcription and speech creation functionality The code changes include the addition of new functionalities for creating audio transcriptions and speeches. The .gitignore file has been updated to ignore .venv and speech.mp3 files. New constants have been added for API endpoints related to audio transcriptions and speeches. Two new types, CreateAudioTranscriptions and CreateAudioSpeech, have been defined in typings.go to handle requests for these new features. The functions CreateTranscriptions() and CreateSpeech() in api.go have been updated with logic to handle these requests. Lastly, the Python example script tts.py has been modified to create a speech file from text input using OpenAI's Text-to-Speech service.
Release 2024-04-18-141538
Added new headers and improved ID setup Enhanced the Proxy function by adding three new headers: 'Oai-Language', 'Oai-Device-Id', and 'Cookie'. Also, refactored the setupID function to improve error handling and update PUID and OAIDID more efficiently. Additionally, a device id is now generated in the GetIDs function.
Release 2024-04-08-181612
release-2024-04-08-181612 Update README.md
Release 2024-04-08-173259
release-2024-04-08-173259 fix json response is not valid json
Release 2024-04-08-164824
release-2024-04-08-164824 Create FUNDING.yml
Release 2024-04-07-060633
Added user settings and synthesize endpoints Three new API endpoints have been added to the chatgpt service: GetUserSetting, UpdateUserSetting, and GetSynthesize. The GetUserSetting and UpdateUserSetting functions allow for retrieval and modification of user settings respectively. The GetSynthesize function provides synthesized audio output based on given parameters. Additionally, some error messages related to these new functionalities have been defined in constants file. Also, the GetModels function has been simplified by removing a query parameter check.
Release 2024-04-05-170921
Support no auth conversation
- Update OpenAIAuth and funcaptcha library
POST /chatgpt/conversation
,POST /chatgpt/backend-api/conversation
and/api/conversation
support no auth conversation
Release 2024-04-05-170412
Added URL attribution and improved message handling - Introduced a new UrlAttr struct to handle URL attributions. - Enhanced the Handler function with additional checks for message metadata. - Implemented a map to store URL attributions, reducing redundant API calls. - Added getURLAttribution function to fetch URL attributions from the API. - Refactored variable names for clarity and consistency.
Release 2024-04-05-165610
Support no auth conversation 1. Update OpenAIAuth and funcaptcha library 2. `POST /chatgpt/conversation`, `POST /chatgpt/backend-api/conversation` and `/api/conversation` support no auth conversation