Skip to content

Instantly share code, notes, and snippets.

View vincenzopalazzo's full-sized avatar
:octocat:
The commit can contain poetry

Vincenzo Palazzo vincenzopalazzo

:octocat:
The commit can contain poetry
View GitHub Profile
➜ qvac-doc-recognition git:(main) βœ— make dev
Starting bot in development mode...
> [email protected] dev /mnt/HC_Volume_103194752/github/qvac-doc-recognition
> nodemon --exec tsx src/bot.ts
[nodemon] 3.1.10
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/*
[nodemon] watching extensions: ts
common_init_from_params: setting dry_penalty_last_n to ctx_size = 1024
Failed to generate tool call example: Value is not callable: null at row 1, column 72:
<|im_start|>{% for message in messages %}{{message['role'] | capitalize}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>
^
{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}
at row 1, column 42:
<|im_start|>{% for message in messages %}{{message['role'] | capitalize}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>
➜ ~ lightning-cli decode lni1qqgrc87s57dey0usfwryeer6jvz8zz3ufap52s2wypgxz7t0w468xgrxdaezqcnrx9ckcvn3xeukvctkxe4x5cfcx5cx5efcvvungcmgd5m8sdpn89uxvvryvse8vcmkzr5q8z572egjajvd526h39mp77hc72qt47v2py5zxcxddlcnsx673zdlqt9agh6wgurswra65ppw36hzc5ryy2hnmtn2v5hzfdvpp6magyxz2qsr3y3f87lv7wps6l4n8tw24zty7yc54kl3q5k3m5zp9pch7l080tfqqvcxfxxq2w4qqtuq77ml2sd3hk7dcmm6mmmtegerujgmrgucnclvvcl052qd3dwqaqqz0snsvfegzjtkl7wgqfzeq3say2ehn3s0w40r5n5ddljdvv0qlxzywns9fdua50a0zqmf7qpvnxy3zcat8xqfxn0gr9g3wq2x7sf3yyqt9fvnchalzn9ympuulc3exnn8mw9z03nxpy4sgnqkyyp2enel87crf8vqh2ysq707ykqz5tan2hyj6aas4vuxt7nmg948r8zjqt8ss4qqtqss8pjat4nt27xa99j9mnt66uk843vgqtj6lpa6acflsy8waq5g76as5r7szacr3209v5fwexx69dtcjasl0tu09q96lx9qj2prvrxklufcrd0g3xls98v65u8gs4mwpc5zah0czvwu5mphzdm8yf3yx9gtzqk2qqdtx8mnqgpvm70egvr98cw4846gd6aamvqg62lvzg3623z2ccc7ze22yrdg9qsq908s4jftd2nndadgke8n6zeyta39y9dus95ntcz2h58vsuhevk4x8fh0uhr9yetk4p492hsr0keg24qka7renygm4qwk9jx33x3fujs5p6xg960hjxgwqc4fg5espslwh30athj4qvuz3flhkxfew0xnj8ztnalclahgj7uvpj4tnrkl95rjdqsvjde3frwa33cv8cs47g
➜ ~ oceanln-cli --network bitcoin --tides http://10.188.109.200:48888 get-payout-info 910138 bc1q2z3dtckes6yr3hjuccv638scv4s9tgq6ygsf8g
2025-08-20T15:08:50.818Z INFO oceanln_cli::commands base url: http://127.0.0.1:1900. [oceanln-cli/src/commands.rs:91]
{
"payouts": [
{
"amount_sat": 392160,
"for_block": "910138",
"offer": "lno1pg7y7s69g98zq5rp09hh2arnypnx7u3qvf3nzufj0gekgarrddjhxdnewgeks6n4vd3hvd3n8pekxa35wvuhgem3xeukwumx8pn3vggreqkg8k57f9d97uhulct8rulds3zjyd9c9mm0ysplyngg6kd2s22s",
"options_height": 896988,
"pay_error": null,
{"body":"actor 029ef2ce43571727104099576c633b2233bfeb8dc18b476f93540a32207da9e9a4: dispatch payout for user `bc1q2z3dtckes6yr3hjuccv638scv4s9tgq6ygsf8g` and block `909981` completed: OceanPayoutResult {\n invoice: \"lni1qqg98prn9zs0z4qczfrwdcy4asedsz3ufap52s2wypgxz7t0w468xgrxdaezqcnrx9cny73nv36xx6m9wvm8ju3ndp482cmrwcmrxwrnvdmrgueew3nhzdnevaekvwr8zcss8jpvs0dfuj26tae0elskw8e7mpz9yg6tsthk7fqr7fxs34v64q542gzpdwvsupvzzqe3rrldekvnhrllv2gk85t2f4dt0g6swzhrjt8rd6uk3grvepgs4ksfsq7g9jpa48jftf0h9l87zecl8mvyg53rfwpw7meyq0ey6zx4n25zj5pf9prhuvhc0nklly6vvjhrcae332d65l9gr2nf47uc5tsmaz07a9gpqdrqv5hudr6l6luk9wdtddjx57w3e98c4zf62vx60vcjj2dexlty7qpjv8gw5w4xl8rnecek3u2wprj626e59klq2nn9hp8ya0nmv8y2pcqce6g30fgq989wmdqlh0r2hadpscx95gwqqqqqqqqqqqqqqqfqqqqqqqqqqqqqr5jt9hav2gqqqqqq5szx3809275zpmef5xfykrjxak6lkjahcj9tkxyaengc0s7nmk9j4m92ueaxf6hx4gzpdwvsuzhqxqsqqzczzq7g9jpa48jftf0h9l87zecl8mvyg53rfwpw7meyq0ey6zx4n25zjhcypzs6jd2mchd8ctv7nzcnh5h5tmwjr0udaqt0jgnnhravzu6yafgkugpdt770te2aj5dyz9enj7zy9ghnwm0np6wd2pq4532pry2xkanq\",\n invo
/api/auth/add-amazon-account:1 Failed to load resource: the server responded with a status of 400 ()
CT_0TOm5.js:1 πŸ” Scroll check: Object
CT_0TOm5.js:1 πŸ” Scroll check: Object
CT_0TOm5.js:1 πŸ” Scroll check: Object
CT_0TOm5.js:1 πŸ” Scroll check: Object
CT_0TOm5.js:1 πŸ” Scroll check: Object
CT_0TOm5.js:1 πŸ” Scroll check: Object
CT_0TOm5.js:1 πŸ” Scroll check: Object
CT_0TOm5.js:1 πŸ” Scroll check: Object
CT_0TOm5.js:1 πŸ” Scroll check: Object
final systemPrompt = '''
You are an elite AI fitness advisor and exercise physiologist with expertise in training periodization, recovery science, and personalized programming.
CRITICAL: You MUST respond ONLY with valid JSON. No markdown, no explanations, no text outside the JSON structure.
ANALYSIS GUIDELINES:
- Analyze trends over the provided time period, not just single data points
- Consider the interplay between sleep, stress, recovery, and training capacity
- Factor in training load progression and recovery needs
- Prioritize injury prevention and sustainable training practices
SCORING CRITERIA (0-100):
- Sleep Score: Quality and duration of sleep (70+ = good, 80+ = excellent)
I/flutter (11586): β”‚ #0 PremAIService.callPremAPI (package:pump/services/prem_ai_service.dart:286:15)
I/flutter (11586): β”‚ #1 <asynchronous suspension>
I/flutter (11586): β”œβ”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
I/flutter (11586): β”‚ πŸ› Response Headers: {connection: keep-alive, access-control-allow-origin: *, transfer-encoding: chunked, date: Tue, 01 Jul 2025 14:05:46 GMT, content-encoding: gzip, cf-cache-status: DYNAMIC, report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=4uWNnJPVND9mDDgTh%2FnqLTsEQnEbGZ0hOarVibu0k39Jtg5R8vTJbZtNRNF52FJ7u9TgfWpts6GY%2FrD%2B7covgwWfLhvFtXxgelYzLLoN"}]}, x-clerk-auth-status: signed-out, content-type: application/json, x-clerk-auth-reason: token-invalid, x-clerk-auth-message: Invalid JWT form. A JWT consists of three parts separated by dots. (reason=token-invalid, token-carrier=header), server: cloudflare, alt-svc: h3=":443"; ma=86400, nel:
# πŸš€ AI Training Advisor v2.0 - Major Update
## Overview
This major update brings comprehensive improvements to the AI Training Advisor, eliminating critical runtime crashes, enhancing user experience, and implementing robust caching mechanisms for optimal performance.
---
## πŸ”§ **Critical Bug Fixes**
### Runtime Crash Elimination
error: failed to run custom build command for `secp256k1-sys v0.9.2`
Caused by:
process didn't exit successfully: `/Users/vincenzopalazzo/github/work/btc/ark-rs/target/debug/build/secp256k1-sys-9e8eae326563623e/build-script-build` (exit status: 1)
--- stdout
OUT_DIR = Some(/Users/vincenzopalazzo/github/work/btc/ark-rs/target/wasm32-unknown-unknown/debug/build/secp256k1-sys-cd6cec27dcc08ea4/out)
OPT_LEVEL = Some(0)
TARGET = Some(wasm32-unknown-unknown)
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown