这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix: Ensure local llm_factories.json is used in Docker Compose #9006

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

es-zx
Copy link
Contributor

@es-zx es-zx commented Jul 23, 2025

What problem does this PR solve?

When new models are added to llm_factories.json, users who run docker compose -f docker-compose.yml up -d pull the official image from Docker Hub. Consequently, the container uses the outdated llm_factories.json from the pre-built image, ignoring the local updates.

This PR mounts the local /conf directory as a volume. This ensures the container always uses the most recent local configuration, enabling users to access new models without the need to build a custom Docker image. This change also allows users to add the latest models themselves without having to wait for the official team to update the image.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

es-zx added 3 commits July 22, 2025 13:31
Adds configurations for gemini-2.5-flash and Gemini 2.5-pro models, including tags, maximum token limits, and model types.

The flash model is configured to be used with tools.
Adds configurations for gemini-2.5-flash and Gemini 2.5-pro models, including tags, maximum token limits, and model types.
When new models are added to llm_factories.json, users who run docker compose -f docker-compose.yml up -d pull the official image from Docker Hub. Consequently, the container uses the outdated llm_factories.json from the pre-built image, ignoring the local updates.

This PR mounts the local /conf directory as a volume. This ensures the container always uses the most recent local configuration, enabling users to access new models without the need to build a custom Docker image. This change also allows users to add the latest models themselves without having to wait for the official team to update the image.
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jul 23, 2025
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jul 23, 2025
es-zx added 4 commits July 24, 2025 18:17
Google has launched the new gemini-embedding-001 and will end support for embedding-001 on August 14, 2025. Therefore, this PR adds support for gemini-embedding-001.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working, pull request that fix bug. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant