File size: 321 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 AnyscaleEmbedder(OpenAIEmbedder):
    model: str = "thenlper/gte-large"
    dimensions: int = 1024
    api_key: Optional[str] = getenv("ANYSCALE_API_KEY")
    base_url: str = "https://api.endpoints.anyscale.com/v1"