Closed brianAbell closed 8 months ago
Revised the code to interact with the GPT-3.5-turbo chat model using the v1/chat/completions endpoint. Adjusted the request format to frame the interaction as a conversation with the model, as suggested by OpenAI's documentation for chat models.
The webpage summarizer feature should now work as expected and provide users with a summarized content of their provided URLs.
Debugging:
The current implementation uses the v1/completions endpoint for the GPT-3.5-turbo chat model, which results in an error. The error message returned by OpenAI suggests using the v1/chat/completions endpoint. This issue affects the functionality of our webpage summarizer feature, preventing it from returning a summarized content to the users.