Skip to content

Commit

Permalink
Remove langsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
bukosabino committed Jul 4, 2024
1 parent d759aee commit d5effa7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ schedule==1.2.1

langchain==0.2.1
# langchainplus-sdk==0.0.20
langsmith==0.1.65
# langsmith==0.1.65
langchain-openai==0.1.8
langchain-core==0.2.3
langchain-community==0.2.1
Expand Down
2 changes: 0 additions & 2 deletions src/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from qdrant_client.models import VectorParams
from supabase.client import Client, create_client
from tavily import TavilyClient
from langsmith.wrappers import wrap_openai

from src.utils import StandardSupabaseVectorStore

Expand Down Expand Up @@ -153,7 +152,6 @@ def _init_openai_client():
client = AsyncOpenAI(
api_key=os.environ.get("OPENAI_API_KEY"),
)
client = wrap_openai(client)
logger.info("Initialized OpenAI client")
return client

Expand Down
6 changes: 6 additions & 0 deletions src/service/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,9 @@ async def sleep():
async def asleep():
await asyncio.sleep(5)
return {"status": "OK"}


@APP.get("/get-ip")
async def get_ip(request: Request):
client_host = request.client.host
return {"ip": client_host}

0 comments on commit d5effa7

Please sign in to comment.