Skip to content

Commit

Permalink
エラー修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubosaka committed Nov 14, 2024
1 parent 0aeb05a commit 0036ac2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/app/api/image/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function GET(
}

// 画像URLからキャプションを生成する関数
export const generateCaption = async (imageUrl: string) => {
const generateCaption = async (imageUrl: string) => {
try {
const completion = await openai.chat.completions.create({
model: "gpt-4o",
Expand Down
2 changes: 1 addition & 1 deletion app/src/app/api/minio/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as fs from "node:fs";
import type { IncomingMessage } from "node:http";
import { Readable } from "node:stream";
import { generateCaption } from "@/functions/gpt";
import { scoreRegister } from "@/functions/scoreRegister";
import { shapeCaption } from "@/functions/shapeCaption";
import { postSimilarity } from "@/functions/simirality";
Expand All @@ -9,7 +10,6 @@ import type { ScoreData, ScoreResponse } from "@/types";
import { formidable } from "formidable";
import { Client } from "minio";
import type { NextRequest } from "next/server";
import { generateCaption } from "../image/route";

const minioClient = new Client({
endPoint: process.env.NEXT_PUBLIC_ENDPOINT || "",
Expand Down

0 comments on commit 0036ac2

Please sign in to comment.