Skip to content

Releases: leokwsw/go-chatgpt-api

Release 2024-04-18-172856

18 Apr 17:29
Compare
Choose a tag to compare
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

18 Apr 15:05
Compare
Choose a tag to compare
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

18 Apr 14:16
Compare
Choose a tag to compare
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

08 Apr 18:16
28cf7c5
Compare
Choose a tag to compare
release-2024-04-08-181612

Update README.md

Release 2024-04-08-173259

08 Apr 17:33
Compare
Choose a tag to compare
release-2024-04-08-173259

fix json response is not valid json

Release 2024-04-08-164824

08 Apr 16:48
a80776c
Compare
Choose a tag to compare
release-2024-04-08-164824

Create FUNDING.yml

Release 2024-04-07-060633

07 Apr 06:06
Compare
Choose a tag to compare
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

05 Apr 17:09
Compare
Choose a tag to compare

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

Release 2024-04-05-170412

05 Apr 17:04
Compare
Choose a tag to compare
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

05 Apr 16:56
Compare
Choose a tag to compare
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