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

chore: fix chat image test #1157

Merged
merged 3 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions deploy.env
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ AI_SERVER_HOST=ai
AI_DATABASE_URL=postgresql+psycopg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
AI_REDIS_URL=redis://${REDIS_HOST}:${REDIS_PORT}
LOCAL_AI_TEST_ENABLED=false
AI_APPFLOWY_BUCKET_NAME=appflowy
AI_APPFLOWY_BUCKET_NAME=${APPFLOWY_S3_BUCKET}
AI_APPFLOWY_HOST=${FQDN}
AI_AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY}
AI_AWS_SECRET_ACCESS_KEY=${AWS_SECRET}
AI_MINIO_URL=http://${MINIO_HOST}:${MINIO_PORT}

# AppFlowy Indexer
APPFLOWY_INDEXER_ENABLED=true
Expand Down
5 changes: 2 additions & 3 deletions dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ AI_SERVER_HOST=localhost
AI_DATABASE_URL=postgresql+psycopg://postgres:password@localhost:5432/postgres
AI_REDIS_URL=redis://localhost:6379
LOCAL_AI_TEST_ENABLED=false
AI_APPFLOWY_BUCKET_NAME=appflowy
AI_APPFLOWY_BUCKET_NAME=${APPFLOWY_S3_BUCKET}
AI_APPFLOWY_HOST=http://localhost:8000
AI_AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY}
AI_AWS_SECRET_ACCESS_KEY=${AWS_SECRET}
AI_MINIO_URL=http://localhost:9000

# AppFlowy Indexer
APPFLOWY_INDEXER_ENABLED=true
Expand Down
9 changes: 5 additions & 4 deletions docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,15 @@ services:
- "5001:5001"
environment:
- OPENAI_API_KEY=${AI_OPENAI_API_KEY}
- AI_AWS_ACCESS_KEY_ID=${AI_AWS_ACCESS_KEY_ID}
- AI_AWS_SECRET_ACCESS_KEY=${AI_AWS_SECRET_ACCESS_KEY}
- AI_AWS_ACCESS_KEY_ID=${APPFLOWY_S3_ACCESS_KEY}
- AI_AWS_SECRET_ACCESS_KEY=${APPFLOWY_S3_SECRET_KEY}
- AI_APPFLOWY_BUCKET_NAME=${AI_APPFLOWY_BUCKET_NAME}
- AI_SERVER_PORT=${AI_SERVER_PORT}
- AI_DATABASE_URL=${AI_DATABASE_URL}
- AI_REDIS_URL=${AI_REDIS_URL}
- AI_APPFLOWY_BUCKET_NAME=${AI_APPFLOWY_BUCKET_NAME}
- AI_APPFLOWY_HOST=${AI_APPFLOWY_HOST}
- AI_USE_MINIO=${APPFLOWY_S3_USE_MINIO}
- AI_MINIO_URL=${AI_MINIO_URL}
- AI_APPFLOWY_HOST=${AI_APPFLOWY_HOST}
- SUPPORT_OPENAI_V3_IMAGE_MODEL=false

appflowy_worker:
Expand Down
1 change: 1 addition & 0 deletions src/api/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ async fn get_blob_by_object_key(
}
}

trace!("Get blob data from bucket storage: {:?}", key.object_key());
let blob_result = state.bucket_storage.get_blob(key).await;
match blob_result {
Ok(blob) => {
Expand Down
Loading