-
## What's wrong
I want to test that async iterator raises error.
```python
with pytest.raises(KeyError, match='unknown'):
async for _ in gpt.generate(gpt_request):
pass
```
Receive …
-
The [`AsyncIterator` spec](https://tc39.es/ecma262/#table-async-iterator-optional) defines a `throw()` method.
>Invoking this method notifies the AsyncIterator object that the caller has detected a…
-
I want to do something like the following:
```python
@service
def create_transaction() -> Iterator[Transaction]:
transaction = Transaction()
try:
yield transaction
finally…
-
Does RxPY provide a facility for converting async iterators into Observables?
For example, if I have:
```
async foo():
for x in range(5):
result = await get_data_from_somewhere(x)…
-
I think Stream() would be a good place for this, what does everyone else think?
We should also be sure to handle cases such as https://github.com/nodejs/node/issues/28194
-
### Description
_No response_
### Reproduction
```swift
@MainActor
func iterate(over stream: AsyncStream) async {
for await ns in stream {
print(ns)
}
}
```
Building this code wit…
-
[LOG] Submitting Request...
Traceback (most recent call last):
File "C:\Users\Boys\AppData\Local\Temp\_MEI66762\gradio\queueing.py", line 527, in process_events
response = await route_utils…
-
Creating dataset
resize datasets/baoguoabc\1 6.jpg : 512x512
image_path=datasets/baoguoabc\1 6.jpg, caption_path = M:\fluxgym\datasets\baoguoabc\1 6.txt, original_caption=baoguoabc1
resize datasets…
-
Claude
```
{
'modelId': 'anthropic.claude-3-5-sonnet-20240620-v1:0',
'messages': [
{
'role': 'user',
'content': [{'text': 'Find an image with a dog.'}]
…
-
# Summary
Add some form of export for *generators*, which are functions that when called, return an iterator. Precise syntax is TBD.
# Info
- Owner: @estebank
- Liaison: @pnkfelix
- Zulip…