Skip to content

Commit

Permalink
fix(agents-api): chnaged from voyage to openai
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedantsahai18 committed Jan 8, 2025
1 parent 94ace86 commit 635b227
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion agents-api/agents_api/queries/docs/create_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def create_doc(
owner_type: Literal["user", "agent"],
owner_id: UUID,
modality: Literal["text", "image", "mixed"] | None = "text",
embedding_model: str | None = "voyage-3",
embedding_model: str | None = "text-embedding-3-large",
embedding_dimensions: int | None = 1024,
language: str | None = "english",
index: int | None = 0,
Expand Down
4 changes: 2 additions & 2 deletions agents-api/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def get_pg_dsn(start_vectorizer: bool = False):
pg_dsn.replace("localhost", postgres.get_container_host_ip()),
)
.with_env(
"VOYAGE_API_KEY",
os.environ.get("VOYAGE_API_KEY"),
"OPENAI_API_KEY",
os.environ.get("OPENAI_API_KEY"),
)
) as vectorizer:
wait_for_logs(
Expand Down
6 changes: 3 additions & 3 deletions memory-store/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
# See: https://github.com/timescale/timescaledb-docker?tab=readme-ov-file#notes-on-timescaledb-tune
environment:
- POSTGRES_PASSWORD=${MEMORY_STORE_PASSWORD:-postgres}
- VOYAGE_API_KEY=${VOYAGE_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
ports:
- "5432:5432"
volumes:
Expand All @@ -29,8 +29,8 @@ services:
image: timescale/pgai-vectorizer-worker:v0.3.0
environment:
- PGAI_VECTORIZER_WORKER_DB_URL=postgres://postgres:${MEMORY_STORE_PASSWORD:-postgres}@memory-store:5432/postgres
- VOYAGE_API_KEY=${VOYAGE_API_KEY}
command: [ "--poll-interval", "5s" ]
- OPENAI_API_KEY=${OPENAI_API_KEY}
command: [ "--poll-interval", "2s" ]
depends_on:
memory-store:
condition: service_healthy
Expand Down

0 comments on commit 635b227

Please sign in to comment.