feat: artifacts system prompt in backend

This commit is contained in:
Danny Avila 2024-08-24 01:02:03 -04:00
parent fa0032d91d
commit e3bcfc560d
11 changed files with 225 additions and 3 deletions

View file

@ -398,6 +398,8 @@ export const tConversationSchema = z.object({
max_tokens: coerceNumber.optional(),
/* Anthropic */
promptCache: z.boolean().optional(),
/* artifacts */
artifacts: z.string().optional(),
/* vision */
resendFiles: z.boolean().optional(),
imageDetail: eImageDetailSchema.optional(),
@ -508,6 +510,7 @@ export const openAISchema = tConversationSchema
presence_penalty: true,
frequency_penalty: true,
resendFiles: true,
artifacts: true,
imageDetail: true,
stop: true,
iconURL: true,
@ -569,6 +572,7 @@ export const googleSchema = tConversationSchema
examples: true,
temperature: true,
maxOutputTokens: true,
artifacts: true,
topP: true,
topK: true,
iconURL: true,
@ -654,6 +658,7 @@ export const anthropicSchema = tConversationSchema
topK: true,
resendFiles: true,
promptCache: true,
artifacts: true,
iconURL: true,
greeting: true,
spec: true,
@ -719,6 +724,7 @@ export const gptPluginsSchema = tConversationSchema
chatGptLabel: true,
promptPrefix: true,
temperature: true,
artifacts: true,
top_p: true,
presence_penalty: true,
frequency_penalty: true,
@ -796,6 +802,7 @@ export const assistantSchema = tConversationSchema
model: true,
assistant_id: true,
instructions: true,
artifacts: true,
promptPrefix: true,
iconURL: true,
greeting: true,
@ -827,6 +834,7 @@ export const compactAssistantSchema = tConversationSchema
assistant_id: true,
instructions: true,
promptPrefix: true,
artifacts: true,
iconURL: true,
greeting: true,
spec: true,
@ -845,6 +853,7 @@ export const compactOpenAISchema = tConversationSchema
presence_penalty: true,
frequency_penalty: true,
resendFiles: true,
artifacts: true,
imageDetail: true,
stop: true,
iconURL: true,
@ -886,6 +895,7 @@ export const compactGoogleSchema = tConversationSchema
examples: true,
temperature: true,
maxOutputTokens: true,
artifacts: true,
topP: true,
topK: true,
iconURL: true,
@ -923,6 +933,7 @@ export const compactAnthropicSchema = tConversationSchema
topK: true,
resendFiles: true,
promptCache: true,
artifacts: true,
iconURL: true,
greeting: true,
spec: true,

View file

@ -51,6 +51,7 @@ export type TPayload = Partial<TMessage> &
};
export type TSubmission = {
artifacts?: string;
plugin?: TResPlugin;
plugins?: TResPlugin[];
userMessage: TMessage;