mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
add comment
This commit is contained in:
parent
c2574526dd
commit
f78a0c58be
1 changed files with 2 additions and 1 deletions
|
|
@ -140,7 +140,8 @@ export class AiService {
|
|||
form.append(`image${i}`, new Blob([chunk[i]], { type: 'image/png' }), `${i}.png`);
|
||||
}
|
||||
|
||||
// content-type (boundary 付き) は node-fetch が FormData から自動設定する
|
||||
// Content-Type は FormData から boundary 付きで自動設定させるため、手動設定はしない。
|
||||
// 手動指定すると boundary の欠落・不一致で multipart として読めなくなる。
|
||||
const headers: Record<string, string> = {};
|
||||
if (apiKey != null && apiKey !== '') {
|
||||
headers['Authorization'] = `Bearer ${apiKey}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue