Spaces:
Running
Running
File size: 299 Bytes
1ab26fb |
1 2 3 4 5 6 7 8 9 10 11 |
from llama_index import OpenAIEmbedding
from llama_index.llms import OpenAI
from constants import ChatbotVersion
def get_service_provider_config(model_name: str = ChatbotVersion.CHATGPT_35.value):
llm = OpenAI(model=model_name)
embed_model = OpenAIEmbedding()
return llm, embed_model
|