Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: lint and fix pass on develop #2180

Merged
merged 25 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c641bfd
typo fix: close object
odilitime Jan 10, 2025
2139a62
update lockfile
odilitime Jan 10, 2025
2c439a4
lint fixes
odilitime Jan 10, 2025
091c98a
Merge branch 'develop' into odi-fix
odilitime Jan 10, 2025
79e3942
processAtions can't be awaited in non-async function
odilitime Jan 10, 2025
a16ff26
revert GoPlusType so it can work with switch statement
odilitime Jan 10, 2025
3af072d
lint fixes
odilitime Jan 10, 2025
1258bc1
processAtions can't be awaited in non-async function
odilitime Jan 10, 2025
2910cd3
revert GoPlusType so it can work with switch statement
odilitime Jan 10, 2025
258fc75
bump lock
odilitime Jan 11, 2025
63ddbb6
merge, fix conflicts
odilitime Jan 11, 2025
1f8b51e
Merge branch 'odi-fix' of https://github.com/odilitime/eliza into odi…
odilitime Jan 11, 2025
4a1a5b8
Merge branch 'develop' into odi-fix
odilitime Jan 11, 2025
f31fc28
Merge branch 'develop' of https://github.com/ai16z/eliza into odi-fix
odilitime Jan 12, 2025
c1176b2
Merge branch 'develop' of https://github.com/ai16z/eliza into odi-fix
odilitime Jan 12, 2025
b431407
Merge branch 'develop' of https://github.com/ai16z/eliza into odi-fix
odilitime Jan 12, 2025
5bbff61
convert imageDescriptionsArray from let to const per lint
odilitime Jan 12, 2025
14612de
remove duplicate TOGETHER in case, lint/unused var
odilitime Jan 12, 2025
608ed2e
bump eslint so it doesn't crash
odilitime Jan 12, 2025
89da426
comment out unused AkashMessage interface
odilitime Jan 12, 2025
82e0e08
clean up unused var in catch
odilitime Jan 12, 2025
0f98884
bump
odilitime Jan 12, 2025
5436065
Merge branch 'odi-fix' of https://github.com/odilitime/eliza into odi…
odilitime Jan 12, 2025
fb21142
Merge branch 'develop' of https://github.com/ai16z/eliza into odi-fix
odilitime Jan 12, 2025
a53bb49
Merge branch 'odi-fix' of https://github.com/ai16z/eliza into odi-fix
odilitime Jan 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading