We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 676f345 commit 7d66f2eCopy full SHA for 7d66f2e
site/src/api/api.ts
@@ -2133,6 +2133,26 @@ class ApiMethods {
2133
2134
return response.data;
2135
};
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
+ const response = await this.axios.get<TypesGen.AITasksPromptsResponse>(
2146
+ "/api/v2/aitasks/prompts",
2147
+ {
2148
+ params: {
2149
+ build_ids: buildIds.join(","),
2150
+ },
2151
2152
+ );
2153
2154
+ return response.data;
2155
2156
2157
getLicenses = async (): Promise<GetLicensesResponse[]> => {
2158
const response = await this.axios.get("/api/v2/licenses");
0 commit comments