@@ -49,7 +49,7 @@ Your function with additional attribute `openai_schema`
49
49
50
50
```python
51
51
async def stream_to_log (
52
- response : Union[Iterator[OAIResponse], AsyncIterator[OAIResponse]]
52
+ response : Union[Iterator[OAIResponse], AsyncIterator[OAIResponse]]
53
53
) -> List[OAIResponse]
54
54
```
55
55
@@ -77,7 +77,7 @@ This is useful for debugging, when you first save the stream to an array and the
77
77
78
78
** Arguments** :
79
79
80
- - ` log ` :
80
+ - ` log ` :
81
81
82
82
<a id =" stream_processing " ></a >
83
83
@@ -134,7 +134,7 @@ The difference between the current dictionary and the previous one
134
134
async def process_response (
135
135
response : OAIResponse,
136
136
content_func : Optional[Callable[[AsyncGenerator[str , None ]],
137
- Awaitable[None ]]] = None ,
137
+ Awaitable[None ]]] = None ,
138
138
funcs : Optional[List[Callable[[], Awaitable[None ]]]] = None ,
139
139
self : Optional = None ) -> Tuple[Set[str ], Dict[str , Any]]
140
140
```
@@ -177,7 +177,7 @@ function in the func attribute).
177
177
178
178
** Arguments** :
179
179
180
- - `func` :
180
+ - `func` :
181
181
182
182
< a id =" fn_dispatcher.dispatch_yielded_functions_with_args" >< / a>
183
183
@@ -198,7 +198,7 @@ Dispatches function calls from a generator that yields function names and argume
198
198
- `gen` : The generator that yields function names and arguments
199
199
- `funcs` : The functions to dispatch to
200
200
- `dict_preprocessor` : A function that takes a function name and a dictionary of arguments and returns a new
201
- dictionary of arguments
201
+ dictionary of arguments
202
202
- `self ` : An optional self argument to pass to the functions
203
203
204
204
** Returns** :
@@ -267,9 +267,9 @@ Called when the parsing was terminated
267
267
268
268
```python
269
269
async def process_struct_response(
270
- response: OAIResponse,
271
- handler: BaseHandler,
272
- output_serialization: OutputSerialization = " json"
270
+ response: OAIResponse,
271
+ handler: BaseHandler,
272
+ output_serialization: OutputSerialization = " json"
273
273
) -> Tuple[Optional[Union[TModel, Terminate]], Dict[str , Any]]
274
274
```
275
275
0 commit comments