Spaces:
Runtime error
Runtime error
File size: 334 Bytes
105b369 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from os import getenv
from typing import Optional
from phi.embedder.openai import OpenAIEmbedder
class FireworksEmbedder(OpenAIEmbedder):
model: str = "nomic-ai/nomic-embed-text-v1.5"
dimensions: int = 768
api_key: Optional[str] = getenv("FIREWORKS_API_KEY")
base_url: str = "https://api.fireworks.ai/inference/v1"
|