Skip to content

Commit

Permalink
Fix incorrect module/function call
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Jan 9, 2025
1 parent 8eb62a9 commit fc6a940
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ragna/deploy/_ui/modal_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ async def did_finish_upload(self, input, corpus_name=None):
corpus_name = self.corpus_name_input.value

try:
chat = self.create_chat(
chat = self._engine.create_chat(
user=pn.state.user,
chat_creation=schemas.ChatCreation(
name=self.chat_name,
input=input,
corpus_name=corpus_name,
source_storage=self._engine.config.source_storage_name,
assistant=self._engine.config.assistant_name,
params=self._engine.config.to_params_dict(),
source_storage=self.config.source_storage_name,
assistant=self.config.assistant_name,
params=self.config.to_params_dict(),
),
)
await self._engine.prepare_chat(user=pn.state.user, id=chat.id)
Expand Down

0 comments on commit fc6a940

Please sign in to comment.