Skip to content

Commit

Permalink
feat: response format as string (DLC-000) (#560)
Browse files Browse the repository at this point in the history
<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**Fixes or implements VF-XXX**

### Brief description. What is this change?

<!-- Build up some context for your teammates on the changes made here and potential tradeoffs made and/or highlight any topics for discussion -->
  • Loading branch information
pmvrmc committed Dec 10, 2024
1 parent 42461cc commit 22c27ed
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions packages/base-types/src/utils/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,7 @@ export interface AICompletionParams {
}

export interface AIResponseFormatParams {
// make it optional for backward compatibility
responseFormat?: {
type: 'object';
properties: Record<
string,
{
type: 'string' | 'number' | 'integer' | 'boolean' | 'enum';
enum?: Array<string | number | boolean>;
const?: string | number | boolean;
description?: string;
}
>;
additionalProperties: boolean;
required: string[];
};
responseFormat?: string;
}

export interface AIContextParams {
Expand Down

0 comments on commit 22c27ed

Please sign in to comment.