(texts: list[str])
| 64 | |
| 65 | |
| 66 | async def embedding_func(texts: list[str]) -> np.ndarray: |
| 67 | return await openai_embedding( |
| 68 | texts, |
| 69 | model=EMBEDDING_MODEL, |
| 70 | api_key=APIKEY, |
| 71 | base_url=BASE_URL, |
| 72 | ) |
| 73 | |
| 74 | |
| 75 | async def get_embedding_dim(): |
no test coverage detected