Skip to content

Commit

Permalink
chore: lint and fix pass on develop (elizaOS#2180)
Browse files Browse the repository at this point in the history
* typo fix: close object

* update lockfile

* lint fixes

* processAtions can't be awaited in non-async function

* revert GoPlusType so it can work with switch statement

* lint fixes

* processAtions can't be awaited in non-async function

* revert GoPlusType so it can work with switch statement

* bump lock

* merge, fix conflicts

* convert imageDescriptionsArray from let to const per lint

* remove duplicate TOGETHER in case, lint/unused var

* bump eslint so it doesn't crash

* comment out unused AkashMessage interface

* clean up unused var in catch

* bump
  • Loading branch information
odilitime authored Jan 12, 2025
1 parent 6690ea6 commit 5973e52
Show file tree
Hide file tree
Showing 6 changed files with 810 additions and 333 deletions.
2 changes: 1 addition & 1 deletion packages/client-twitter/src/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export class TwitterInteractionClient {

elizaLogger.debug("formattedConversation: ", formattedConversation);

let imageDescriptionsArray = [];
const imageDescriptionsArray = [];
try{
elizaLogger.debug('Getting images');
for (const photo of tweet.photos) {
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ export async function generateText({
case ModelProviderName.HYPERBOLIC:
case ModelProviderName.TOGETHER:
case ModelProviderName.NINETEEN_AI:
case ModelProviderName.TOGETHER:
case ModelProviderName.AKASH_CHAT_API: {
elizaLogger.debug("Initializing OpenAI model with Cloudflare check");
const baseURL = getCloudflareGatewayBaseURL(runtime, 'openai') || endpoint;
Expand Down Expand Up @@ -1947,7 +1946,7 @@ async function handleOpenAI({
schemaDescription,
mode = "json",
modelOptions,
provider,
provider: _provider,
runtime,
}: ProviderOptions): Promise<GenerateObjectResult<unknown>> {
const baseURL = getCloudflareGatewayBaseURL(runtime, 'openai') || models.openai.endpoint;
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-akash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"@cosmjs/proto-signing": "^0.31.3",
"@cosmjs/stargate": "0.31.3",
"@elizaos/core": "workspace:*",
"@types/js-yaml": "^4.0.9",
"axios": "^1.7.9",
"dotenv": "^16.4.1",
"jsrsasign": "^11.1.0",
"node-fetch": "^2.7.0",
"zod": "^3.22.4",
"@types/js-yaml": "^4.0.9"
"zod": "^3.22.4"
},
"devDependencies": {
"@types/dotenv": "^8.2.0",
Expand All @@ -38,7 +38,7 @@
"@typescript-eslint/parser": "^6.15.0",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"eslint": "^8.56.0",
"eslint": "^9.16.0",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vite": "^5.0.10",
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-akash/src/actions/estimateGas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { validateAkashConfig } from "../environment";
import { AkashError, AkashErrorCode } from "../error/error";
import { encodingForModel } from "js-tiktoken";

/*
interface AkashMessage {
typeUrl: string;
value: {
Expand All @@ -18,6 +19,7 @@ interface AkashMessage {
[key: string]: unknown;
};
}
*/

interface EstimateGasContent extends Content {
text: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-massa/src/utils/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Address } from "@massalabs/massa-web3";
export const validateAddress = (address: string): Address | undefined => {
try {
return Address.fromString(address);
} catch (_e) {
} catch {
return undefined;
}
};
Loading

0 comments on commit 5973e52

Please sign in to comment.