Skip to content

Commit

Permalink
chore: fix chat image test (#1157)
Browse files Browse the repository at this point in the history
* chore: fix chat image test

* chore: update log
  • Loading branch information
appflowy authored Jan 12, 2025
1 parent b650e9e commit 688534f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
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

0 comments on commit 688534f

Please sign in to comment.