Skip to content

Commit

Permalink
Added updated wheel packages
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh <[email protected]>
  • Loading branch information
yogeshmpandey committed Jan 8, 2025
1 parent c776d3b commit 85c796c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Binary file not shown.
Binary file modified comps/integrations/langchain/dist/langchain_opea-0.1.0.tar.gz
Binary file not shown.
5 changes: 1 addition & 4 deletions comps/integrations/langchain/langchain_opea/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ class ChatOPEA(BaseChatOpenAI): # type: ignore[override]
"""
opea_api_base: str = Field(default="https://localhost:9009/v1/")
"""Base URL path for API requests."""

openai_api_key: Optional[SecretStr] = None
# openai_api_base: Optional[str] = None


model_config = ConfigDict(
populate_by_name=True,
)
Expand Down
7 changes: 4 additions & 3 deletions tests/integrations/test_integration_langchain_opea.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function start_service() {
docker run -d --name="test-comps-integration-llm-tgi-endpoint" -p $tgi_endpoint_port:80 -v ~/.cache/huggingface/hub:/data --shm-size 1g -e HF_TOKEN=${HF_TOKEN} ghcr.io/huggingface/text-generation-inference:2.1.0 --model-id ${hf_llm_model} --max-input-tokens 1024 --max-total-tokens 2048
# check whether tgi is fully ready
n=0
rm $LOG_PATH/test-comps-vllm-service.log
until [[ "$n" -ge 100 ]] || [[ $ready == true ]]; do
docker logs test-comps-integration-llm-tgi-endpoint >> $LOG_PATH/test-comps-vllm-service.log
n=$((n+1))
Expand Down Expand Up @@ -81,18 +82,18 @@ function validate_package(){
cd "$WORKPATH/GenAIComps/comps/integrations/langchain/"
poetry run pytest --asyncio-mode=auto tests/
if [ $? -ne 0 ]; then
echo "Package installation fail"
echo "Package Tests failed"
exit 1
else
echo "Package installation successful"
echo "Package Tests successful"
fi

}


function remove_integration_package(){
cd "$WORKPATH/GenAIComps/comps/integrations/langchain/"
pip uninstall langchain-opea
pip uninstall -y langchain-opea
if [ $? -ne 0 ]; then
echo "Package removal fail"
exit 1
Expand Down

0 comments on commit 85c796c

Please sign in to comment.