Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7d66f2e

Browse files
committed
api.ts
1 parent676f345 commit7d66f2e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎site/src/api/api.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,6 +2133,26 @@ class ApiMethods {
21332133

21342134
returnresponse.data;
21352135
};
2136+
getAITasksPrompts=async(
2137+
buildIds:TypesGen.WorkspaceBuild["id"][],
2138+
):Promise<TypesGen.AITasksPromptsResponse>=>{
2139+
if(buildIds.length===0){
2140+
return{
2141+
prompts:{},
2142+
};
2143+
}
2144+
2145+
constresponse=awaitthis.axios.get<TypesGen.AITasksPromptsResponse>(
2146+
"/api/v2/aitasks/prompts",
2147+
{
2148+
params:{
2149+
build_ids:buildIds.join(","),
2150+
},
2151+
},
2152+
);
2153+
2154+
returnresponse.data;
2155+
};
21362156

21372157
getLicenses=async():Promise<GetLicensesResponse[]>=>{
21382158
constresponse=awaitthis.axios.get("/api/v2/licenses");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp