Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] OpenAIEmbeddingFunction need support OpenAI proxy #1872

Open
fly1397 opened this issue Jan 10, 2025 · 0 comments
Open

[FEATURE] OpenAIEmbeddingFunction need support OpenAI proxy #1872

fly1397 opened this issue Jan 10, 2025 · 0 comments
Labels
feature-request New feature or request

Comments

@fly1397
Copy link

fly1397 commented Jan 10, 2025

Feature Area

Integration with external tools

Is your feature request related to a an existing bug? Please link it here.

NA

Describe the solution you'd like

now the embedder config can't support the openAI proxy

Describe alternatives you've considered

crewai/utilities/embedding_configurator.py line 65

@staticmethod
    def _configure_openai(config, model_name):
        from chromadb.utils.embedding_functions.openai_embedding_function import (
            OpenAIEmbeddingFunction,
        )

        return OpenAIEmbeddingFunction(
            api_key=config.get("api_key") or os.getenv("OPENAI_API_KEY"),
            api_base=config.get("api_base") or os.getenv("OPENAI_API_BASE"),
            model_name=model_name,
        )

Additional context

No response

Willingness to Contribute

Yes, I'd be happy to submit a pull request

@fly1397 fly1397 added the feature-request New feature or request label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant