Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

795 B
Raw Blame
// This file is auto-generated by @hey-api/openapi-ts

import { oc } from '@orpc/contract'
import * as z from 'zod'
import { zGetAppPromptTemplatesQuery, zGetAppPromptTemplatesResponse } from './zod.gen.ts'

/**
 * Get advanced prompt templates based on app mode and model configuration
 */
export const get = oc
  .route({
    description: 'Get advanced prompt templates based on app mode and model configuration',
    inputStructure: 'detailed',
    method: 'GET',
    operationId: 'getAppPromptTemplates',
    path: '/app/prompt-templates',
    tags: ['console'],
  })
  .input(z.object({ query: zGetAppPromptTemplatesQuery }))
  .output(zGetAppPromptTemplatesResponse)

export const promptTemplates = {
  get,
}

export const app = {
  promptTemplates,
}

export const contract = {
  app,
}