mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 10:56:52 +08:00
fix(web): complete some ts type (#1148)
This commit is contained in:
@@ -35,24 +35,18 @@ export type SpeechToTextConfig = MoreLikeThisConfig
|
||||
|
||||
export type CitationConfig = MoreLikeThisConfig
|
||||
|
||||
export type RetrieverResourceConfig = MoreLikeThisConfig
|
||||
|
||||
// frontend use. Not the same as backend
|
||||
export type ModelConfig = {
|
||||
provider: string // LLM Provider: for example "OPENAI"
|
||||
model_id: string
|
||||
configs: PromptConfig
|
||||
opening_statement: string | null
|
||||
more_like_this: {
|
||||
enabled: boolean
|
||||
} | null
|
||||
suggested_questions_after_answer: {
|
||||
enabled: boolean
|
||||
} | null
|
||||
speech_to_text: {
|
||||
enabled: boolean
|
||||
} | null
|
||||
retriever_resource: {
|
||||
enabled: boolean
|
||||
} | null
|
||||
more_like_this: MoreLikeThisConfig | null
|
||||
suggested_questions_after_answer: SuggestedQuestionsAfterAnswerConfig | null
|
||||
speech_to_text: SpeechToTextConfig | null
|
||||
retriever_resource: RetrieverResourceConfig | null
|
||||
dataSets: any[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user