Muspi Merol

Results 39 issues of Muspi Merol

### Details There are some new env usages inside the code. Please search `import.meta.env` and update related information inside `.env.example` and `README*` files. Checklist - [X] Modify `.env.example` ✓ https://github.com/CNSeniorious000/free-chat/commit/c86c8b35f9da0d556bfab3658f49e50b400c7051...

sweep

### Details 在 src/pages/api/generate.ts 中加上和 src/components/Generator.tsx 中一样的裁剪 messages 的逻辑: 但是注意:服务端用不了 tiktoken 库,只能用 tiktoken-js 库,他们应该有类似的 interface Checklist - [X] Create `src/utils/tiktoken-server.ts` ✓ https://github.com/CNSeniorious000/free-chat/commit/09d72442ebe25ea72693afd406fe601d703d1b27 - [X] Running GitHub Actions for `src/utils/tiktoken-server.ts` ✓...

sweep

Fixed #4899 Fixed #4901 ### Description Added a `_runcode_inner` function to run `runcode` with lock. `runcode` now can be overwritten while still got locked. ### Checklists - [x] Add a...

## 🚀 Feature Can we provide a `ignoreVersionCheck` option to bypass this? https://github.com/pyodide/pyodide/blob/cf41eafe1665ecc4e0682ab43aa271a32b719127/src/js/pyodide.ts#L260-L267 ### Motivation I am making a stackblitz reproduction template for #4895, if I can bootstrap another version...

enhancement

## 🐛 Bug `Console.runcode` is locked, so it acts like a normal synchronous python console. The only difference `PyodideConsole.runcode` made is calling `loadPackagesFromImports` before running `super().runcode`. But `loadPackagesFromImports` is not...

bug

## 🐛 Bug Traceback unexpectedly truncated: [![stackblitz screenshot](https://github.com/pyodide/pyodide/assets/74518716/9d248e83-bef9-4d12-be45-70dffb594de7)](https://stackblitz.com/edit/pyodide-issue-demo-4jndzt?file=src%2Fmain.py) ### To Reproduce [stackblitz interactive reproduction](https://stackblitz.com/edit/pyodide-issue-demo-4jndzt?file=src%2Fmain.py) main.py (runnable in pyodide repl too) ```py from contextlib import suppress from pyodide.console import Console c...

bug

### Describe the bug I am trying to create a streaming response in an `+server.ts` endpoint, but `svelte-check` tells me an `AsyncIteratable` is not a `BodyInit`, I don't know why....

question

# Bug report ### Bug description: I need to implement layered context running python code, so I choose `ChainMap`. But Python needs every `globals` passed to `exec` to be a...

type-bug
interpreter-core

Some python environment can only install python packages with `.whl`. Such as @pyodide, a wasm python runtime. - Version by >2024 - Python version 3.12 As this is a pure...

### Describe the bug If I use `toast.promise`, when it changes from loading state to success/error state, it has a smooth scale-in-out animation, and the background color is fade-in-out too....