Skip to content

Commit

Permalink
fix: plugin-opacity (#2900)
Browse files Browse the repository at this point in the history
* Fixed all the typing errors

* chore: remove console.log

---------

Co-authored-by: Shakker Nerd <[email protected]>
  • Loading branch information
AIFlowML and shakkernerd authored Jan 28, 2025
1 parent 4831125 commit 1fa8deb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/plugin-opacity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export class OpacityAdapter implements IVerifiableInferenceAdapter {
});

// Get provider-specific endpoint
let endpoint;
let authHeader;
let endpoint: string;
let authHeader: string;

switch (provider) {
case ModelProviderName.OPENAI:
Expand All @@ -54,7 +54,7 @@ export class OpacityAdapter implements IVerifiableInferenceAdapter {
}

try {
let body;
let body: Record<string, unknown>;
// Handle different API formats
switch (provider) {
case ModelProviderName.OPENAI:
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-opacity/src/utils/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


export async function verifyProof(baseUrl: string, textID: string, proof: string) {
export async function verifyProof(baseUrl: string, _textID: string, proof: string) {
const response = await fetch(`${baseUrl}/api/verify`, {
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 1fa8deb

Please sign in to comment.