david

david удалил ветку fix/x86-build в david/eonix

3 недель назад

david удалил ветку fix/sigcont-panic в david/eonix

3 недель назад

david удалил ветку feat/driver/serial-wakers в david/eonix

3 недель назад

david запушил(а) main в david/duckcoding

1 месяц назад

david запушил(а) main в david/duckcoding

  • cf4e2ada9d feat: use pi catalog metadata and filter models by api key group Model capabilities were inferred from name regexes, which marked Gemini models as non-reasoning, capped them at a 64K context, and left every model with wrong output limits. Costs were also wrong because `model_price` is 0 for token-billed models, so `model_price ?? model_ratio` always produced a free input rate. Resolve reasoning, input modes, context window, max tokens and thinking levels from the Pi model catalog for the model's vendor. Fetch the public catalog when the model cache is refreshed and re-apply the local registry catalog at session start, so a degraded or offline refresh still converges. Fall back to family defaults only for models the catalog does not know. Compute rates by parsing `billing_expr`, which is the authoritative DuckCoding price and reflects its own markups. Exclude image, video and classifier entries that are billed per request, and bump the cache schema so stale inferred metadata is discarded. The pricing endpoint lists every billing group, so the picker exposed models that the API key could not call. Intersect with the authenticated `/v1/models` result, cached for an hour keyed by a hash of the API key and invalidated when the key changes. Explicit offline mode keeps using the cached list. Signed-off-by: greatbridf <[email protected]>
  • 584ea0377d feat: use pi catalog metadata and filter models by api key group Model capabilities were inferred from name regexes, which marked Gemini models as non-reasoning, capped them at a 64K context, and left every model with wrong output limits. Costs were also wrong because `model_price` is 0 for token-billed models, so `model_price ?? model_ratio` always produced a free input rate. Resolve reasoning, input modes, context window, max tokens and thinking levels from the Pi model catalog for the model's vendor. Fetch the public catalog when the model cache is refreshed and re-apply the local registry catalog at session start, so a degraded or offline refresh still converges. Fall back to family defaults only for models the catalog does not know. Compute rates by parsing `billing_expr`, which is the authoritative DuckCoding price and reflects its own markups. Exclude image, video and classifier entries that are billed per request, and bump the cache schema so stale inferred metadata is discarded. The pricing endpoint lists every billing group, so the picker exposed models that the API key could not call. Intersect with the authenticated `/v1/models` result, cached for an hour keyed by a hash of the API key and invalidated when the key changes. Explicit offline mode keeps using the cached list. Signed-off-by: greatbridf <[email protected]>
  • Просмотр сравнение для этих 2 коммитов »

1 месяц назад

david запушил(а) main в david/duckcoding

  • 584ea0377d feat: use pi catalog metadata and filter models by api key group Model capabilities were inferred from name regexes, which marked Gemini models as non-reasoning, capped them at a 64K context, and left every model with wrong output limits. Costs were also wrong because `model_price` is 0 for token-billed models, so `model_price ?? model_ratio` always produced a free input rate. Resolve reasoning, input modes, context window, max tokens and thinking levels from the Pi model catalog for the model's vendor. Fetch the public catalog when the model cache is refreshed and re-apply the local registry catalog at session start, so a degraded or offline refresh still converges. Fall back to family defaults only for models the catalog does not know. Compute rates by parsing `billing_expr`, which is the authoritative DuckCoding price and reflects its own markups. Exclude image, video and classifier entries that are billed per request, and bump the cache schema so stale inferred metadata is discarded. The pricing endpoint lists every billing group, so the picker exposed models that the API key could not call. Intersect with the authenticated `/v1/models` result, cached for an hour keyed by a hash of the API key and invalidated when the key changes. Explicit offline mode keeps using the cached list. Signed-off-by: greatbridf <[email protected]>
  • 62fa75959d feat: fetch model list from api and cache them with a TTL Signed-off-by: greatbridf <[email protected]>
  • 9da90dff90 Initial commit Signed-off-by: greatbridf <[email protected]>

1 месяц назад

david создал новую ветку main в david/duckcoding

1 месяц назад

david создал(а) репозиторий david/duckcoding

1 месяц назад

david запушил(а) master в david/vm-deploy

9 месяцев назад

david запушил(а) master в david/vm-deploy

9 месяцев назад

david создал новую ветку master в david/vm-deploy

9 месяцев назад

david создал(а) репозиторий david/vm-deploy

9 месяцев назад

david запушил(а) master в david/naiveserver

9 месяцев назад

david создал новую ветку master в david/naiveserver

9 месяцев назад

david создал(а) репозиторий david/naiveserver

9 месяцев назад

david запушил(а) feat/driver/e1000e-rework в david/eonix

  • 3140316f9b Merge branch 'master' into dev-drivers
  • 66c94103a8 partial work of netdev
  • f07a81c34a Merge pull request #33 from greatbridf/fix fix(ext4): use new Instant and get_name methods
  • 835a1ef4d2 fix(ext4): use new Instant and get_name methods
  • 3219293b2f Merge pull request #31 from greatbridf/fix-syscall Implement various syscalls and fixed some **funny** bugs.

9 месяцев назад

david создал новую ветку feat/driver/e1000e-rework в david/eonix

9 месяцев назад

david запушил(а) fix/sigcont-panic в david/eonix

  • 45864d7432 signal: don't disable preemption before handling SIGSTOP For some reason, we disabled preemptions before we set the waker and yield. This is prohibited since we can't go to sleep with preemption disabled. After examining the previous commit, I think we used to call Scheduler::schedule() to do context switches, which needs preemptions disabled. When we move on to the new method, we just forgot to change it. This should fix the issue. Fixes: e23c9eb1f24c ("runtime: new task sleep-wakeup method and some adaption") Signed-off-by: greatbridf <[email protected]>
  • 997edb05a2 proc: rewrite process list organization - Use intrusive lists to store and organize the process hierarchy. - Remove `FileArray::open_console()`. Do it in the init script instead. - Fix open logic: acquire controlling terminals only if O_NOCTTY is not set. Put this into TerminalFile::open(). - Send SIGHUP and then SIGCONT to foreground pgroup procs when the controlling terminal is dropped. - Set the controlling terminal of sessions in Terminal. - Limit max line width to 80. Format some codes. Signed-off-by: greatbridf <[email protected]>
  • b6d54d6a0f mm, proc: add an exited thread reaper - thd.exit() will set thd.dead and send it to the reaper - delay the release of process mm until we reap it - extract futex logic out of exit and exec routine Signed-off-by: greatbridf <[email protected]>
  • 47d890648a chore: remove and ignore vscode settings from svc Signed-off-by: greatbridf <[email protected]>
  • bc84f0be80 user, init: update riscv64 init script Make print message prettier. Also panic when we have an error. Signed-off-by: greatbridf <[email protected]>

9 месяцев назад

david создал новую ветку fix/sigcont-panic в david/eonix

9 месяцев назад

david запушил(а) feat/driver/serial-wakers в david/eonix

  • 82470afc34 driver, serial: correct async wait impl Previously, we use the WaitList to sleep and wakeup in the worker task. Replace the implementation with wakers. Signed-off-by: greatbridf <[email protected]>
  • 19f9ef3351 vfs: rework the vfs subsystem with async Inode and superblock rework: Remove old Inode trait as it used to undertake too much responsibility. The new method use three new traits: InodeOps is used to acquire generic inode attributes. InodeFileOps and InodeDirOps handle file and directory requests respectively. All the three have async fn trait methods and don't need to be ?Sized. Then, we implement Inode, InodeFile and InodeDir for the implementors of the three "Ops" traits, erasing their actual type and provide generic dyn interface by wrapping the futures in boxes. We should provide an io worker? or some io context with an allocator for futures to reduce the overhead of io requests, or come up with some better ideas? For inode usage, we introduce InodeRef and InodeUse. InodeRef is a simple wrapper for Weak<impl Inode> and InodeUse for Arc<impl Inode>. This helps us use them better as we can't define impls for Arc<dyn Inode>'s as they are foreign types. We also provide some more helper methods for them. After the change, we don't impose ANY structural restriction except for the spinlock wrapped InodeInfo. The InodeInfo struct design might need rethinking but the current implementation seems to be fine aside from unnecessary locks when we try to access some of its fields but this shouldn't be a VERY big problem and very urgent... Similar changes are also made to superblock traits and types. But for the superblock objects, we use a SuperBlockComplex struct to store common fields such as whether the superblock is read only, their device id and so on. Also the structs have a superblock rwsem inside. But we haven't decided how to use that (such as whether we should acquire the lock and pass it to the inode methods) and even whether they should exist and be there. This will need further thinking so we put this off for now... Filesystem rework: Rework tmpfs, fatfs and procfs with the new technology mentioned above, leaving the old ext4 unchanged. The current implementation of ext4 uses some "random" library from the "camp". Its code hasn't been fully reviewed for time reasons but seems to be rather "problematic"... We might rewrite the whole module later and the page cache subsystem requires fully reworking as well. So we put this work off as well. Block device and other parts rework: Wraps PageCacheBackend, MountCreator and BlockRequestQueue with async_trait to provide dyn compatible async functions. Dentry walking functions are also put to the heap since they are recursive functions... This has similar problems to the inode traits, ugly solution. Further optimization is required. Signed-off-by: greatbridf <[email protected]>
  • 755b006871 Merge pull request #58 from greatbridf/fix/termios-buffer-overflow syscall: fix struct termios definitions
  • 2967de5de3 syscall: fix struct termios definitions Fixes the buffer overflow caused by the wrong struct size. Signed-off-by: greatbridf <[email protected]> (cherry picked from commit de12291ceebab608e6ff89bf9e41a3ab479f19ce) Signed-off-by: greatbridf <[email protected]>
  • 2fc31b7eb3 Merge pull request #59 from greatbridf/fix/loongarch64-boot fix(hal): fix loongarch's boot fault

9 месяцев назад