chore (AddStateBody class)
This commit is contained in:
		
							parent
							
								
									e0b7453883
								
							
						
					
					
						commit
						da68926e9c
					
				| @ -1,4 +1,4 @@ | |||||||
| from typing import Any, Dict, List | from typing import Any, Dict, List, Union | ||||||
| from utils.log import quick_log | from utils.log import quick_log | ||||||
| from fastapi import APIRouter, HTTPException, Request, Response, status | from fastapi import APIRouter, HTTPException, Request, Response, status | ||||||
| from pydantic import BaseModel | from pydantic import BaseModel | ||||||
| @ -60,7 +60,7 @@ def enable_state_cache(): | |||||||
| 
 | 
 | ||||||
| class AddStateBody(BaseModel): | class AddStateBody(BaseModel): | ||||||
|     prompt: str |     prompt: str | ||||||
|     tokens: List[str] |     tokens: List[Union[str, int]] | ||||||
|     state: Any |     state: Any | ||||||
|     logits: Any |     logits: Any | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user