Skip to content

Commit

Permalink
fix retrieval test
Browse files Browse the repository at this point in the history
  • Loading branch information
phact committed Nov 22, 2024
1 parent 8f1de87 commit cde5e67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/tests/astra-assistants/test_run_retreival_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import pytest
import logging

from openai.types.beta.threads.message_create_params import Attachment

logger = logging.getLogger(__name__)

def run_with_assistant(assistant, client, file_path, embedding_model):
Expand Down Expand Up @@ -86,8 +88,9 @@ def run_with_assistant(assistant, client, file_path, embedding_model):
thread_id=thread.id,
role="user",
content=user_message,
file_ids=[file2.id],
tools=[{"type": "file_search"}]
attachments=[
Attachment(file_id=file2.id, tools=[{"type": "file_search"}]),
]
)
logger.info(f"> {user_message}")

Expand Down

0 comments on commit cde5e67

Please sign in to comment.