|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import type { |
|
|
ApiChatCompletionRequest, |
|
|
ApiChatCompletionResponse, |
|
|
ApiChatCompletionStreamChunk, |
|
|
ApiChatMessageData, |
|
|
ApiChatMessageContentPart, |
|
|
ApiContextSizeError, |
|
|
ApiErrorResponse, |
|
|
ApiLlamaCppServerProps, |
|
|
ApiProcessingState |
|
|
} from '$lib/types/api'; |
|
|
|
|
|
import type { |
|
|
ChatMessageType, |
|
|
ChatRole, |
|
|
ChatUploadedFile, |
|
|
ChatMessageSiblingInfo, |
|
|
ChatMessagePromptProgress, |
|
|
ChatMessageTimings |
|
|
} from '$lib/types/chat'; |
|
|
|
|
|
import type { |
|
|
DatabaseConversation, |
|
|
DatabaseMessage, |
|
|
DatabaseMessageExtra, |
|
|
DatabaseMessageExtraAudioFile, |
|
|
DatabaseMessageExtraImageFile, |
|
|
DatabaseMessageExtraTextFile, |
|
|
DatabaseMessageExtraPdfFile |
|
|
} from '$lib/types/database'; |
|
|
|
|
|
import type { |
|
|
SettingsConfigValue, |
|
|
SettingsFieldConfig, |
|
|
SettingsConfigType |
|
|
} from '$lib/types/settings'; |
|
|
|
|
|
declare global { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export { |
|
|
ApiChatCompletionRequest, |
|
|
ApiChatCompletionResponse, |
|
|
ApiChatCompletionStreamChunk, |
|
|
ApiChatMessageData, |
|
|
ApiChatMessageContentPart, |
|
|
ApiContextSizeError, |
|
|
ApiErrorResponse, |
|
|
ApiLlamaCppServerProps, |
|
|
ApiProcessingState, |
|
|
ChatMessageData, |
|
|
ChatMessagePromptProgress, |
|
|
ChatMessageSiblingInfo, |
|
|
ChatMessageTimings, |
|
|
ChatMessageType, |
|
|
ChatRole, |
|
|
ChatUploadedFile, |
|
|
DatabaseConversation, |
|
|
DatabaseMessage, |
|
|
DatabaseMessageExtra, |
|
|
DatabaseMessageExtraAudioFile, |
|
|
DatabaseMessageExtraImageFile, |
|
|
DatabaseMessageExtraTextFile, |
|
|
DatabaseMessageExtraPdfFile, |
|
|
SettingsConfigValue, |
|
|
SettingsFieldConfig, |
|
|
SettingsConfigType, |
|
|
SettingsChatServiceOptions |
|
|
}; |
|
|
} |
|
|
|