Skip to content

Commit

Permalink
chore: removed logs and downgraded permit generator
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Aug 26, 2024
1 parent d636208 commit 09ada15
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@octokit/webhooks": "13.2.7",
"@sinclair/typebox": "0.32.23",
"@supabase/supabase-js": "2.42.0",
"@ubiquibot/permit-generation": "1.4.2",
"@ubiquibot/permit-generation": "1.3.1",
"@ubiquity-dao/rpc-handler": "1.3.0",
"@ubiquity-dao/ubiquibot-logger": "1.3.1",
"decimal.js": "10.4.3",
Expand Down
2 changes: 1 addition & 1 deletion src/configuration/incentives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const incentivesConfigurationSchema = T.Object(
contentEvaluator: T.Union([contentEvaluatorConfigurationType, T.Null()], { default: null }),
userExtractor: T.Union([userExtractorConfigurationType, T.Null()], { default: null }),
dataPurge: T.Union([dataPurgeConfigurationType, T.Null()], { default: null }),
formattingEvaluator: formattingEvaluatorConfigurationType,
formattingEvaluator: T.Union([formattingEvaluatorConfigurationType, T.Null()], { default: null }),
permitGeneration: T.Union([permitGenerationConfigurationType, T.Null()], { default: null }),
githubComment: T.Union([githubCommentConfigurationType, T.Null()], { default: null }),
},
Expand Down
9 changes: 0 additions & 9 deletions src/parser/content-evaluator-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,6 @@ export class ContentEvaluatorModule implements Module {
specification: string,
comments: { id: number; comment: string }[]
): Promise<RelevancesByOpenAi> {
return Promise.resolve(
(() => {
const relevance: { [k: string]: number } = {};
comments.forEach((comment) => {
relevance[`${comment.id}`] = 0.8;
});
return relevance;
})()
);
const prompt = this._generatePrompt(specification, comments);
const dummyResponse = JSON.stringify(this._generateDummyResponse(comments), null, 2);
const maxTokens = this._calculateMaxTokens(dummyResponse);
Expand Down
11 changes: 5 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3309,24 +3309,23 @@
"@typescript-eslint/types" "6.21.0"
eslint-visitor-keys "^3.4.1"

"@ubiquibot/permit-generation@1.4.2":
version "1.4.2"
resolved "https://registry.yarnpkg.com/@ubiquibot/permit-generation/-/permit-generation-1.4.2.tgz#213be0f6cc1d9ca9775da915d69706fb562c456c"
integrity sha512-3gcYlApQWC1iKxiqVt+tQk5hqxovM1EGlkSNCAOZ7WPhmVWfoKvRI8On5AJz3Drr0VML4TjJxYklV40ar5go+A==
"@ubiquibot/permit-generation@1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@ubiquibot/permit-generation/-/permit-generation-1.3.1.tgz#d162fbd9e2f3f05a0000d7a3e154bcf4e4f9fd9e"
integrity sha512-iBopgqCeUXHRIsbGKqvmxdD01fzWBProYrWLpqZuhpStHo1PRt17CU4lPu98YkMC3ZfFslxxj/8SExroAx/+2g==
dependencies:
"@actions/core" "^1.10.1"
"@actions/github" "^6.0.0"
"@octokit/rest" "^20.0.2"
"@octokit/webhooks" "^13.1.0"
"@sinclair/typebox" "^0.32.5"
"@supabase/supabase-js" "2.42.0"
"@ubiquity-dao/rpc-handler" "^1.1.0"
"@uniswap/permit2-sdk" "^1.2.0"
dotenv "^16.4.4"
ethers "6.11.1"
libsodium-wrappers "^0.7.13"

"@ubiquity-dao/rpc-handler@1.3.0", "@ubiquity-dao/rpc-handler@^1.1.0":
"@ubiquity-dao/rpc-handler@1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@ubiquity-dao/rpc-handler/-/rpc-handler-1.3.0.tgz#d6d26dda525a572539e969353070562c4cc0237c"
integrity sha512-BoN3IENjJWaMHSk3tC2I48e0Bz8NbwmjymLQ9EamN3lMf9djTEdWbmD2baRr9pIZJ6Sh5HzgYdCN+i7I1lZbVw==
Expand Down

0 comments on commit 09ada15

Please sign in to comment.