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

Muxing workspace from https://docs.codegate.ai/features/muxing, provider not found. #1212

Closed
dopper opened this issue Mar 4, 2025 · 4 comments
Assignees
Labels

Comments

@dopper
Copy link

dopper commented Mar 4, 2025

Describe the issue

When attempting to create a muxing workspace using one or more providers (openai + anthropic), the page has an error "Provider does not exist".

Non working example: default workspace -> add filter -> select model -> o3-mini -> popup on bottom of page "Provider does not exist"
Working example: default workspace -> no change -> export OPENAI_API_KEY=<YOUR_API_KEY>
export OPENAI_API_BASE=http://localhost:8989/openai -> aider --model o3-mini -> Works correctly with codegate.

Host macOS Mac silicon
Docker image command: docker run --name codegate -d -p 8989:8989 -p 9090:9090 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest

Steps to Reproduce

docker run --name codegate -d -p 8989:8989 -p 9090:9090 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest

Non working example:
providers -> add provider -> provider "openai" -> default endpoint -> API key -> save -> success
default workspace -> add filter -> select model -> o3-mini -> popup on bottom of page "Provider does not exist"

Operating System

MacOS (Arm)

IDE and Version

iTerm

Extension and Version

ghcr.io/stacklok/codegate:latest

Provider

OpenAI

Model

o3-mini

Codegate version

v1.26.0 (1.27 won't update yet).

Logs

docker logs --follow codegate
zsh: command not found: Use
Initializing entrypoint script...
Backup path or mode not provided. Skipping restore.
Generating certificates...
Starting the dashboard...
Starting the application with args: --port 8989 --host 0.0.0.0 --model-base-path /app/codegate_volume/models --db-path /app/codegate_volume/db/codegate.db --vec-db-path /app/sqlite_data/vectordb.db --ollama-url http://host.docker.internal:11434 --lm-studio-url http://host.docker.internal:1234 --log-level WARNING --log-format TEXT
alembic
Existing Certificates are already present.
zsh: no matches found: (useful for troubleshooting),
Initializing entrypoint script...
Backup path or mode not provided. Skipping restore.
Generating certificates...
Starting the dashboard...
Starting the application with args: --port 8989 --host 0.0.0.0 --model-base-path /app/codegate_volume/models --db-path /app/codegate_volume/db/codegate.db --vec-db-path /app/sqlite_data/vectordb.db --ollama-url http://host.docker.internal:11434 --lm-studio-url http://host.docker.internal:1234 --log-level WARNING --log-format TEXT
alembic
Existing Certificates are already present.
2025-03-04T15:13:11.106354Z [warning ] configuration file is missing 'ner_model_configuration'. Using default lineno=128 module=nlp_engine_provider pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/nlp_engine/nlp_engine_provider.py
2025-03-04T15:13:11.106717Z [warning ] model_to_presidio_entity_mapping is missing from configuration, using default lineno=78 module=ner_model_configuration pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/nlp_engine/ner_model_configuration.py
2025-03-04T15:13:11.106832Z [warning ] low_score_entity_names is missing from configuration, using default lineno=84 module=ner_model_configuration pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/nlp_engine/ner_model_configuration.py
2025-03-04T15:13:11.106910Z [warning ] labels_to_ignore is missing from configuration, using default lineno=89 module=ner_model_configuration pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/nlp_engine/ner_model_configuration.py
/usr/local/lib/python3.12/site-packages/spacy/util.py:910: UserWarning: [W095] Model 'en_core_web_sm' (3.8.0) was trained with spaCy v3.8.0 and may not be 100% compatible with the current version (3.7.5). If you see errors or degraded performance, download a newer compatible model or retrain your custom model with the current spaCy version. For more details and available updates, run: python -m spacy validate
warnings.warn(warn_msg)
2025-03-04T15:13:11.327479Z [warning ] Recognizer not added to registry because language is not supported by registry - CreditCardRecognizer supported languages: es, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327551Z [warning ] Recognizer not added to registry because language is not supported by registry - CreditCardRecognizer supported languages: it, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327582Z [warning ] Recognizer not added to registry because language is not supported by registry - CreditCardRecognizer supported languages: pl, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327612Z [warning ] Recognizer not added to registry because language is not supported by registry - EsNifRecognizer supported languages: es, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327635Z [warning ] Recognizer not added to registry because language is not supported by registry - EsNieRecognizer supported languages: es, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327655Z [warning ] Recognizer not added to registry because language is not supported by registry - ItDriverLicenseRecognizer supported languages: it, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327674Z [warning ] Recognizer not added to registry because language is not supported by registry - ItFiscalCodeRecognizer supported languages: it, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327693Z [warning ] Recognizer not added to registry because language is not supported by registry - ItVatCodeRecognizer supported languages: it, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327713Z [warning ] Recognizer not added to registry because language is not supported by registry - ItIdentityCardRecognizer supported languages: it, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327732Z [warning ] Recognizer not added to registry because language is not supported by registry - ItPassportRecognizer supported languages: it, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py
2025-03-04T15:13:11.327750Z [warning ] Recognizer not added to registry because language is not supported by registry - PlPeselRecognizer supported languages: pl, registry supported languages: en lineno=119 module=recognizers_loader_utils pathname=/usr/local/lib/python3.12/site-packages/presidio_analyzer/recognizer_registry/recognizers_loader_utils.py

Additional Context

No response

@alex-mcgovern
Copy link
Contributor

Hey @dopper — I checked this out, and I think it might be on us, a UX/UI issue with the form.

I followed the steps to reproduce, and when I didn't select a model for the "catch-all" matcher (this is required) — I got the same error. We can probably make this a little bit clearer in the UI — I've opened a ticket to take care of that.

If you have time, can you try this again, populating the model for the "catch-all" row, and let us know if it continues?

Screen.Recording.2025-03-04.at.8.42.39.PM.mov

@alex-mcgovern alex-mcgovern self-assigned this Mar 4, 2025
@dopper
Copy link
Author

dopper commented Mar 4, 2025

This seems to work, testing now to verify.
Thank for the quick reply!

@lukehinds
Copy link
Contributor

Let us know if you're good now @dopper or just go ahead and close the issue

@dopper
Copy link
Author

dopper commented Mar 17, 2025

Yes it is working now thanks.

@dopper dopper closed this as completed Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants