Skip to content

Commit 947f896

Browse files
committed
Run prettier
1 parent 09ecd11 commit 947f896

File tree

6 files changed

+842
-805
lines changed

6 files changed

+842
-805
lines changed

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/AiProviderSelector.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @jsxImportSource @emotion/react */
2+
import { useAiProviderStore } from './aiProviderStore'
23
import { EuiRadioGroup } from '@elastic/eui'
34
import type { EuiRadioGroupOption } from '@elastic/eui'
45
import { css } from '@emotion/react'
5-
import { useAiProviderStore } from './aiProviderStore'
66

77
const containerStyles = css`
88
padding: 1rem;
@@ -29,7 +29,9 @@ export const AiProviderSelector = () => {
2929
<EuiRadioGroup
3030
options={options}
3131
idSelected={provider}
32-
onChange={(id) => setProvider(id as 'AgentBuilder' | 'LlmGateway')}
32+
onChange={(id) =>
33+
setProvider(id as 'AgentBuilder' | 'LlmGateway')
34+
}
3335
name="aiProvider"
3436
legend={{
3537
children: 'AI Provider',

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/Chat.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @jsxImportSource @emotion/react */
2-
import { AskAiSuggestions } from './AskAiSuggestions'
32
import { AiProviderSelector } from './AiProviderSelector'
3+
import { AskAiSuggestions } from './AskAiSuggestions'
44
import { ChatMessageList } from './ChatMessageList'
55
import { useChatActions, useChatMessages } from './chat.store'
66
import {
@@ -142,8 +142,9 @@ export const Chat = () => {
142142
<p>
143143
I can help answer your questions about
144144
Elastic documentation. <br />
145-
Ask me anything about Elasticsearch, Kibana,
146-
Observability, Security, and more.
145+
Ask me anything about Elasticsearch,
146+
Kibana, Observability, Security, and
147+
more.
147148
</p>
148149
<EuiSpacer size="m" />
149150
<AiProviderSelector />

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/StreamingAiMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ChatMessage } from './ChatMessage'
21
import { EventTypes } from './AskAiEvent'
2+
import { ChatMessage } from './ChatMessage'
33
import {
44
ChatMessage as ChatMessageType,
55
useChatActions,

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/useAskAi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export const useAskAi = (props: Props): UseAskAiResponse => {
6969
} catch (error) {
7070
console.error('[AI Provider] Failed to parse SSE event:', {
7171
eventData: sseEvent.data,
72-
error: error instanceof Error ? error.message : String(error),
72+
error:
73+
error instanceof Error ? error.message : String(error),
7374
})
7475
// Re-throw to trigger onError handler
7576
throw new Error(

0 commit comments

Comments
 (0)