Sohay — full release history
============================

readme.txt lists the most recent releases; this file keeps every release
since 1.0.0.

= 1.2.0 =

* New — pick your AI provider. Choose OpenAI or Google (Gemini) under Sohay → AI Settings, paste that provider's API key, and choose its model. Each provider's key and model are stored separately, so switching back later doesn't mean re-entering anything. Existing sites keep using OpenAI, with no migration and no change in how the chatbot behaves.
* Knowledge Base users, please note — indexing and search always run on OpenAI, whichever provider answers the chat. If you select Gemini and use the Knowledge Base, keep an OpenAI key saved as well. Without one the chatbot still replies but stops consulting your articles, and the Knowledge Base lookup now switches itself off cleanly instead of failing partway through an answer.
* Changed — the chat widget now renders in an isolated container, so your theme can no longer change how the chat looks, and the chat can no longer change your site's fonts, colours, borders, or spacing. The trade-off is that plugins which scan your pages for content — translation plugins, session recorders, and accessibility overlays — no longer see inside the chat. Screen readers and keyboard navigation are unaffected. See the FAQ for the details.
* Fixed — right-to-left languages now get the mirrored layout. Arabic, Hebrew, Persian, and other RTL sites were being served the left-to-right stylesheet in both the chat widget and the Sohay admin screens.
* Changed — the plugin is now listed as "Sohay — AI Chatbot for Knowledge Base and WooCommerce", so the name says what it does on a store. Nothing under the name moves: your settings, saved conversations, Knowledge Base articles, and the Sohay admin menu are all unchanged, and the update installs over your existing copy with no migration.
* For developers — five new filters for choosing and configuring the service behind the chat: `sohaychat_allowed_ai_providers`, `sohaychat_default_ai_provider`, `sohaychat_provider_options`, `sohaychat_allowed_google_models`, and `sohaychat_default_google_model`.

= 1.1.0 =

* New — WooCommerce shopping tools. On stores running WooCommerce 7.0 or newer, the chatbot can help shoppers right inside the chat: search and browse your catalog, look up a specific product and its options, check live stock and prices, answer shipping, returns, refund, and payment questions from your store settings and Knowledge Base, and add, change, or remove items in the shopper's cart. Cart changes come with an Undo button, and every price, stock count, and product detail comes straight from your store — the chatbot never makes them up. On sites without WooCommerce the tools stay completely hidden.
* Tag Knowledge Base articles as "policy" or "faq" (under KB Articles) so the store-policy answers prefer them for shipping, returns, and refund questions.
* Faster, cheaper repeat lookups — read-only catalog and policy results are briefly cached on sites running a persistent object cache (Redis or Memcached), scoped per shopper so nothing leaks between visitors. Tunable via the new `sohaychat_tool_cache_ttl` filter.
* Improved default chatbot instructions — the built-in prompt now greets visitors, declines off-topic questions politely, cites Knowledge Base articles as links, and answers in the visitor's language. Custom prompts now recognise `{site_name}` and `{current_date}`; your own custom system prompt still takes priority.
* Fixed — the chat widget no longer briefly showed a false "Chat is temporarily unavailable" message right after a successful answer.
* Fixed — the Conversations inbox now lists chats by most recent activity with correct timestamps regardless of your site's timezone, and loading older chats no longer repeats rows.
* For developers — a new `sohaychat_system_prompt` filter, a tools/abilities foundation with new action and filter hooks, and a conversation tool-call audit table. This release also runs a one-time, automatic database update on upgrade.

= 1.0.0 =

* Initial release on WordPress.org.
