feat: llm support struct output (#17994)
Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
This commit is contained in:
parent
da9269ca97
commit
775dc47abe
82 changed files with 4190 additions and 276 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import type { I18nText } from '@/i18n/language'
|
||||
import type { Model } from '@/types/app'
|
||||
|
||||
export type CommonResponse = {
|
||||
result: 'success' | 'fail'
|
||||
|
|
@ -291,3 +292,13 @@ export type ModerationService = (
|
|||
text: string
|
||||
}
|
||||
) => Promise<ModerateResponse>
|
||||
|
||||
export type StructuredOutputRulesRequestBody = {
|
||||
instruction: string
|
||||
model_config: Model
|
||||
}
|
||||
|
||||
export type StructuredOutputRulesResponse = {
|
||||
output: string
|
||||
error?: string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue