Skip to content

Commit

Permalink
fix: Embed with custom model
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed May 6, 2024
1 parent fe60735 commit 250fc30
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion agents-api/agents_api/routers/sessions/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
from ...common.protocol.entries import Entry
from ...common.protocol.sessions import SessionData
from ...common.utils.template import render_template
from ...env import summarization_tokens_threshold
from ...env import (
summarization_tokens_threshold,
docs_embedding_service_url,
docs_embedding_model_id,
)
from ...model_registry import (
JULEP_MODELS,
get_extra_settings,
Expand Down Expand Up @@ -201,6 +205,8 @@ async def forward(
]
],
join_inputs=False,
embedding_service_url=docs_embedding_service_url,
embedding_model_name=docs_embedding_model_id,
)

entries: list[Entry] = []
Expand Down

0 comments on commit 250fc30

Please sign in to comment.