Fix linting
This commit is contained in:
parent
ecd7777e61
commit
ffb642a5ce
1 changed files with 2 additions and 1 deletions
|
|
@ -477,7 +477,8 @@ async def openai_embed(
|
|||
)
|
||||
return np.array(
|
||||
[
|
||||
np.array(dp.embedding, dtype=np.float32) if isinstance(dp.embedding, list)
|
||||
np.array(dp.embedding, dtype=np.float32)
|
||||
if isinstance(dp.embedding, list)
|
||||
else np.frombuffer(base64.b64decode(dp.embedding), dtype=np.float32)
|
||||
for dp in response.data
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue