Skip to content

Commit

Permalink
fix: oxlint
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon authored and EYHN committed Apr 12, 2024
1 parent 0f2b4e2 commit cb75553
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,21 +272,9 @@ export function setupAIProvider() {

AIProvider.provideAction('makeItReal', options => {
assertExists(options.stream);
const prompt = 'Make it real';
return textToTextStream({
docId: options.docId,
workspaceId: options.workspaceId,
prompt,
attachments: options.attachments,
params: options.params,
});
});

AIProvider.provideAction('makeItReal', options => {
assertExists(options.stream);
const prompt = 'Make it real';
const promptName = 'Make it real';
return imageToTextStream({
promptName: prompt,
promptName,
docId: options.docId,
workspaceId: options.workspaceId,
params: options.params,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function textToTextStream({
export function imageToTextStream({
docId,
workspaceId,
promptName: promptName,
promptName,
...options
}: {
docId: string;
Expand Down Expand Up @@ -78,12 +78,12 @@ export function imageToTextStream({
export function imageToImagesStream({
docId,
workspaceId,
prompt: promptName,
promptName,
...options
}: {
docId: string;
workspaceId: string;
prompt: string;
promptName: string;
content: string;
params?: string;
attachments?: string[];
Expand Down

0 comments on commit cb75553

Please sign in to comment.