Skip to content

Commit bb0da3e

Browse files
committed
fix: Increase ACTOR_ENUM_MAX_LENGTH from 200 to 2000 to ensure that geocode are not removed
1 parent 834e381 commit bb0da3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/const.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// Actor input const
22
export const ACTOR_README_MAX_LENGTH = 5_000;
3-
export const ACTOR_ENUM_MAX_LENGTH = 200;
3+
// Actor enum property max length, we need to make sure that most of the enum values fit into the input (such as geocodes)
4+
export const ACTOR_ENUM_MAX_LENGTH = 2000;
45
export const ACTOR_MAX_DESCRIPTION_LENGTH = 500;
56

6-
export const ACTOR_RUN_DATASET_OUTPUT_MAX_ITEMS = 5;
7-
87
// Actor run const
98
export const ACTOR_MAX_MEMORY_MBYTES = 4_096; // If the Actor requires 8GB of memory, free users can't run actors-mcp-server and requested Actor
109

src/tools/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ export function shortenEnum(enumList: string[]): string[] | undefined {
278278

279279
/**
280280
* Shortens the description, enum, and items.enum properties of the schema properties.
281+
* This is mostly problem with compass/crawler-google-places, which has large number of categories
282+
* such as ( 'abbey', 'accountant', 'accounting', 'acupuncturist', .... )
281283
* @param properties
282284
*/
283285
export function shortenProperties(properties: { [key: string]: ISchemaProperties }): {

0 commit comments

Comments
 (0)