okami.mom/albedo

git clone https://git.nkp.pet/okami.mom/albedo

nekomimi.petawa3846f03

main
331 B9 linesraw
1-module(albedo_live_coding).
2-export([take_key/0, now/0, with_runtime/2]).
3take_key() ->
4    Value = albedo_openai_bench:env(<<"ALBEDO_BENCH_KEY">>),
5    os:unsetenv("ALBEDO_BENCH_KEY"),
6    Value.
7now() -> erlang:monotonic_time(millisecond).
8with_runtime(Host, Run) ->
9    try Run() after 'albedo@harness@runtime':stop(Host) end.