Peter Dave Hello d4a4971db9 Fix handling of empty choices array in Azure OpenAI API integration
This commit refines the error handling for the Azure OpenAI API
integration to address the 'n.choices[0] is undefined' error by ensuring
'data.choices' and 'data.choices[0]' are properly checked before access.
This update is necessary due to the behavior changes introduced in the
API version update (#684), which can result in empty 'choices' arrays.

Fix #698.
2024-05-12 19:50:30 +08:00
2024-05-08 22:41:06 +08:00
2023-04-25 14:48:51 +08:00
2023-03-15 16:18:51 +08:00
2023-10-31 12:17:33 +08:00
2023-03-15 16:18:51 +08:00
2023-03-15 16:18:51 +08:00
2023-03-15 16:18:51 +08:00
2023-12-03 23:31:04 +08:00
2024-05-08 22:41:19 +08:00
2023-03-15 16:18:51 +08:00
2024-03-26 22:40:29 +08:00
2024-03-26 22:40:29 +08:00
2024-03-26 22:40:29 +08:00
2024-03-26 22:40:29 +08:00
2024-03-26 22:40:29 +08:00

ChatGPT Box

Deep ChatGPT integrations in your browser, completely for free.

license release size verfiy

English   |   Indonesia   |   简体中文   |   日本語   |   Türkçe

Install

Chrome Edge Firefox Safari Android Github

Guide   |   Preview   |   Development&Contributing   |   Video Demonstration   |   Credit

News

  • This extension does not collect your data. You can verify it by conducting a global search for fetch( and XMLHttpRequest( in the code to find all network request calls. The amount of code is not much, so it's easy to do that.

  • This tool will not transmit any data to ChatGPT unless you explicitly ask it to. By default, the extension must be activated manually. It will only send a request to ChatGPT if you specifically click "Ask ChatGPT" or trigger the selection floating tools — and this is applicable only when you're using GPT API modes. (issue #407)

  • You can use projects like https://github.com/BerriAI/litellm / https://github.com/songquanpeng/one-api to convert LLM APIs into OpenAI format and use them in conjunction with ChatGPTBox's Custom Model mode

  • You can also use Ollama / https://openrouter.ai/docs#models with ChatGPTBox's Custom Model mode

Features

  • 🌈 Call up the chat dialog box on any page at any time. (Ctrl+B)
  • 📱 Support for mobile devices.
  • 📓 Summarize any page with right-click menu. (Alt+B)
  • 📖 Independent conversation page. (Ctrl+Shift+H)
  • 🔗 Multiple API support (Web API for Free and Plus users, GPT-3.5, GPT-4, Claude, New Bing, Moonshot, Self-Hosted, Azure etc.).
  • 📦 Integration for various commonly used websites (Reddit, Quora, YouTube, GitHub, GitLab, StackOverflow, Zhihu, Bilibili). (Inspired by wimdenherder)
  • 🔍 Integration to all mainstream search engines, and custom queries to support additional sites.
  • 🧰 Selection tool and right-click menu to perform various tasks, such as translation, summarization, polishing, sentiment analysis, paragraph division, code explain and queries.
  • 🗂️ Static cards support floating chat boxes for multi-branch conversations.
  • 🖨️ Easily save your complete chat records or copy them partially.
  • 🎨 Powerful rendering support, whether for code highlighting or complex mathematical formulas.
  • 🌍 Language preference support.
  • 📝 Custom API address support.
  • ⚙️ All site adaptations and selection tools(bubble) can be freely switched on or off, disable modules you don't need.
  • 💡 Selection tools and site adaptation are easy to develop and extend, see the Development&Contributing section.
  • 😉 Chat to improve the answer quality.

Preview

Search Engine Integration, Floating Windows, Conversation Branches

preview_google_floatingwindow_conversationbranch

Integration with Commonly Used Websites, Selection Tools

preview_reddit_selectiontools

Independent Conversation Page

preview_independentpanel

Git Analysis, Right Click Menu

preview_github_rightclickmenu

Video Summary

preview_youtube

Mobile Support

image

Settings

preview_settings

Credit

This project is based on one of my other repositories, josStorer/chatGPT-search-engine-extension

josStorer/chatGPT-search-engine-extension is forked from wong2/chat-gpt-google-extension (I learned a lot from that) and detached since 14 December of 2022

wong2/chat-gpt-google-extension is inspired by ZohaibAhmed/ChatGPT-Google (upstream-c54528b)

S
Description
Integrating ChatGPT into your browser deeply, everything you need is here
Readme MIT 3.9 MiB
Languages
JavaScript 88.7%
SCSS 10.3%
CSS 0.6%
Shell 0.2%
HTML 0.2%