Tags: yomorun/yomo
Tags
feat(llm-bridge): google cloud vertex ai support global location (#1109) update from `aiplatform.googleapis.com/v1/` to `aiplatform.googleapis.com/v1beta1/` as described at https://cloud.google.com/vertex-ai/generative-ai/docs/migrate/openai/overview and, add support for `global` location support. ```yaml vertexai: project_id: PRJ_ID credentials_file: "./credential.json" model: gemini-2.5-pro location: global ```
refactor: cli (#1092) # Description refactor CLI ## gen - Replace language-based configuration (`lang`) with runtime-based configuration (`runtime`), enabling support for multiple runtime environments like "node" and "go" - improve error handling, refactor serverless function registration, and enhance build and run processes for better clarity and usability. --------- Co-authored-by: woorui <rui1009479218@gmail.com>
feat: enhance TypeScript compilation prefer tsgo than tsc (#1084) * Updated the `Build` method to check for the presence of `tsgo` before defaulting to `tsc` for TypeScript compilation. * Enhanced the `Run` method to retrieve and log the version of the `bun` runtime, providing clearer feedback about the runtime environment. ### `Build` stage When `tsgo` is installed: ```sh $ yomo run ℹ️ YoMo Serverless LLM Function file: /Users/fanweixiao/_wrk/yomorun/llm-function-calling-examples/node-tool-get-utc-time/src/app.ts ⌛ Creating YoMo Serverless LLM Function instance... Lockfile is up to date, resolution step is skipped Already up to date Done in 215ms using pnpm v10.11.0 ℹ️ Compiling by tsgo (Version 7.0.0-dev.20250529.1) ℹ️ Starting YoMo Serverless LLM Function instance, connecting to zipper: zipper.vivgrid.com:9000 ℹ️ Serverless LLM Function is running... ℹ️ Runtime is Bun (Version 1.2.9) 4:47PM INF connected to zipper service=stream-function sfn_id=IPfw8zbTg5RSknoJ-mQwc sfn_name=get-utc-time zipper_addr=zipper.vivgrid.com:9000 ℹ️ [get-utc-time] waiting request... ``` when `tsgo` is NOT installed, fallback to `tsc`: ```sh yomo run ℹ️ YoMo Serverless LLM Function file: /Users/fanweixiao/_wrk/yomorun/llm-function-calling-examples/node-tool-get-utc-time/src/app.ts ⌛ Creating YoMo Serverless LLM Function instance... Lockfile is up to date, resolution step is skipped Already up to date Done in 211ms using pnpm v10.11.0 ℹ️ Compiling by tsc (Version 5.8.3) ℹ️ Starting YoMo Serverless LLM Function instance, connecting to zipper: zipper.vivgrid.com:9000 ℹ️ Serverless LLM Function is running... ℹ️ Runtime is Bun (Version 1.2.9) 5:20PM INF connected to zipper service=stream-function sfn_id=u0j1A_nVwSYqbZ2QPNSrQ sfn_name=get-utc-time zipper_addr=zipper.vivgrid.com:9000 ℹ️ [get-utc-time] waiting request... ``` ### `Run` Stage if `bun` is absent, fallback to nodejs: ```sh ~/_wrk/yomorun/yomo/bin/yomo run ℹ️ YoMo Serverless LLM Function file: /Users/fanweixiao/_wrk/yomorun/llm-function-calling-examples/node-tool-get-utc-time/src/app.ts ⌛ Creating YoMo Serverless LLM Function instance... Lockfile is up to date, resolution step is skipped Already up to date Done in 212ms using pnpm v10.11.0 ℹ️ Compiling by tsc (Version 5.8.3) ℹ️ Starting YoMo Serverless LLM Function instance, connecting to zipper: zipper.vivgrid.com:9000 ℹ️ Serverless LLM Function is running... 5:23PM INF connected to zipper service=stream-function sfn_id=mxJyAcPvLuiRO6qfhVoWD sfn_name=get-utc-time zipper_addr=zipper.vivgrid.com:9000 ℹ️ [get-utc-time] waiting request... ```
feat(sfn): put app.ts in src/ (#1046) ```sh $ yomo init cc-test -v ⌛ Initializing the Serverless LLM Function... ✅ Congratulations! You have initialized the Serverless LLM Function successfully. ℹ️ You can enjoy the YoMo Serverless LLM Function via the command: ℹ️ cd cc-test && yomo run $ tree cc-test drwxr-xr-x@ - fanweixiao 15 Apr 10:00 cc-test .rw-r--r--@ 53 fanweixiao 15 Apr 10:00 ├── .env .rw-r--r--@ 32 fanweixiao 15 Apr 10:00 ├── .gitignore .rw-r--r--@ 391 fanweixiao 15 Apr 10:00 ├── package.json .rw-r--r--@ 14k fanweixiao 15 Apr 10:00 ├── pnpm-lock.yaml drwxr-xr-x@ - fanweixiao 15 Apr 10:00 ├── src .rw-r--r--@ 612 fanweixiao 15 Apr 10:00 │ └── app.ts .rw-r--r--@ 266 fanweixiao 15 Apr 10:00 └── tsconfig.json ```
feat: remove tag from llm-sfn (#1020) # Description This commit is fully compatible with the previous version of the client. Processing Flow: 1. `sfn` Connects to zipper. 2. When `sfn` connects to `zipper`, `zipper` checks if the `HandshakeFrame` contains a function definition. 3. If it exists, the current `sfn` is identified as an `llm-sfn`. 4. Subsequently, zipper makes the `llm-sfn` observes `FunctionCallTag` and sets FunctionName to `WantedTarget`. 5. When bridge server triggers function calling to invoke `llm-sfn`, `bridge-source` sends data in the format `tag=FunctionCallTag&&target=FunctionName`. 6. `llm-sfn` Processes and Returns Results 7. After receiving the arguments data, `llm-sfn` processes it and writes the results to `tag=ReducerTag`. Subsequently, `bridge-reducer` observes this function calling result. ## Impact 1. Simplified `llm-sfn` Coding,manual definition of tags is no longer required, reducing the learning curve for users. 2. llm bridge no longer supports registering `llm-sfn` with duplicate names
PreviousNext