Add OpenAI proxy (#1503)
Co-authored-by: Deshraj Yadav <deshrajdry@gmail.com>
This commit is contained in:
@@ -55,6 +55,8 @@ class VectorStoreFactory:
|
||||
def create(cls, provider_name, config):
|
||||
class_type = cls.provider_to_class.get(provider_name)
|
||||
if class_type:
|
||||
if not isinstance(config, dict):
|
||||
config = config.model_dump()
|
||||
vector_store_instance = load_class(class_type)
|
||||
return vector_store_instance(**config)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user