@astro-minimax/ai 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astro-minimax/ai",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vendor-agnostic AI integration package with full RAG pipeline for astro-minimax blogs — supports OpenAI, Cloudflare AI, and custom providers.",
|
|
6
6
|
"author": "Souloss",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@ai-sdk/openai-compatible": "^2.0.35",
|
|
88
88
|
"ai": "^6.0.116",
|
|
89
89
|
"workers-ai-provider": "^3.1.2",
|
|
90
|
-
"@astro-minimax/notify": "0.7.
|
|
90
|
+
"@astro-minimax/notify": "0.7.4"
|
|
91
91
|
},
|
|
92
92
|
"optionalDependencies": {
|
|
93
93
|
"undici": "^6.0.0"
|
|
@@ -776,7 +776,7 @@ export function ChatPanel({ open, onClose, config, articleContext }: ChatPanelPr
|
|
|
776
776
|
};
|
|
777
777
|
|
|
778
778
|
return (
|
|
779
|
-
<div ref={panelRef} data-ai-chat-panel
|
|
779
|
+
<div ref={panelRef} id="ai-chat-panel" data-ai-chat-panel
|
|
780
780
|
class="fixed right-4 bottom-20 z-[90] flex w-[370px] max-w-[calc(100vw-2rem)] flex-col overflow-hidden rounded-2xl border border-border bg-background shadow-2xl sm:right-6 sm:bottom-20"
|
|
781
781
|
style={{ height: 'min(520px, calc(100vh - 7rem))' }}>
|
|
782
782
|
|
|
@@ -845,7 +845,7 @@ export function ChatPanel({ open, onClose, config, articleContext }: ChatPanelPr
|
|
|
845
845
|
{/* Input Area */}
|
|
846
846
|
<div class="shrink-0 border-t border-border px-3 pb-2.5 pt-2">
|
|
847
847
|
<div class="flex items-end gap-1.5 rounded-xl border border-border bg-muted/30 px-2.5 py-1.5 transition-colors focus-within:border-accent/40 focus-within:bg-background">
|
|
848
|
-
<textarea ref={inputRef} rows={1} value={inputValue}
|
|
848
|
+
<textarea id="ai-chat-input" ref={inputRef} rows={1} value={inputValue}
|
|
849
849
|
onInput={(e) => { setInputValue((e.target as HTMLTextAreaElement).value); autoResize(); }}
|
|
850
850
|
onKeyDown={handleKeyDown} placeholder={placeholder} maxLength={500}
|
|
851
851
|
class="min-w-0 flex-1 resize-none bg-transparent py-0.5 text-[13px] leading-snug text-foreground outline-none placeholder:text-foreground-soft"
|