Skip to content

Commit

Permalink
remove project Id
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyjackfrost committed Nov 21, 2024
1 parent 759ebd4 commit 96242d7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions wren-ui/src/apollo/server/adaptors/wrenAIAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,13 @@ export class WrenAIAdaptor implements IWrenAIAdaptor {
}

public async deploy(deployData: DeployData): Promise<WrenAIDeployResponse> {
const { manifest, hash, projectId } = deployData;
const { manifest, hash } = deployData;
try {
const res = await axios.post(
`${this.wrenAIBaseEndpoint}/v1/semantics-preparations`,
{
mdl: JSON.stringify(manifest),
id: hash,
project_id: projectId.toString(),
},
);
const deployId = res.data.id;
Expand Down Expand Up @@ -217,7 +216,6 @@ export class WrenAIAdaptor implements IWrenAIAdaptor {
const body = {
mdl: JSON.stringify(input.manifest),
previous_questions: input.previousQuestions,
project_id: input.projectId,
max_questions: input.maxQuestions,
max_categories: input.maxCategories,
configuration: input.configuration,
Expand Down
1 change: 0 additions & 1 deletion wren-ui/src/apollo/server/models/adaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export enum WrenAILanguage {
export interface DeployData {
manifest: Manifest;
hash: string;
projectId: string;
}

// ask
Expand Down
2 changes: 0 additions & 2 deletions wren-ui/src/apollo/server/services/askingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ export class AskingService implements IAskingService {
const recommendQuestionData: RecommendationQuestionsInput = {
manifest,
previousQuestions: questions,
projectId: project.id.toString(),
maxCategories: 3,
maxQuestions: 9,
configuration: {
Expand Down Expand Up @@ -668,7 +667,6 @@ export class AskingService implements IAskingService {

const response = await this.wrenAIAdaptor.generateRecommendationQuestions({
manifest,
projectId: project.id.toString(),
previousQuestions: input.previousQuestions,
maxCategories: 3,
maxQuestions: 3,
Expand Down
1 change: 0 additions & 1 deletion wren-ui/src/apollo/server/services/deployService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export class DeployService implements IDeployService {
await this.wrenAIAdaptor.deploy({
manifest,
hash,
projectId,
});

// update deploy status
Expand Down
1 change: 0 additions & 1 deletion wren-ui/src/apollo/server/services/projectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ export class ProjectService implements IProjectService {

private getProjectRecommendationQuestionsConfig(project: Project) {
return {
projectId: project.id.toString(),
maxCategories: 3,
maxQuestions: 9,
regenerate: true,
Expand Down

0 comments on commit 96242d7

Please sign in to comment.