diff --git a/proxy/utils/constants.py b/proxy/utils/constants.py index a8b61d3..858a971 100644 --- a/proxy/utils/constants.py +++ b/proxy/utils/constants.py @@ -10,7 +10,6 @@ IGNORED_HEADERS = [ "x-forwarded-proto", "x-forwarded-server", "x-real-ip", - "content-length" ] CLIENT_TIMEOUT = 60.0 diff --git a/run.sh b/run.sh index 6561b48..01f1bb4 100755 --- a/run.sh +++ b/run.sh @@ -6,8 +6,8 @@ up() { # Start your local docker-compose services docker compose -f docker-compose.local.yml up -d - echo "Proxy started at http://localhost/api/v1/proxy/" - echo "See http://localhost/api/v1/proxy/docs for API documentation" + echo "Proxy started at http://localhost:8005/api/v1/proxy/" + echo "See http://localhost:8005/api/v1/proxy/docs for API documentation" } build() { diff --git a/tests/anthropic/test_anthropic_with_tool_call.py b/tests/anthropic/test_anthropic_with_tool_call.py index 6af4836..56be242 100644 --- a/tests/anthropic/test_anthropic_with_tool_call.py +++ b/tests/anthropic/test_anthropic_with_tool_call.py @@ -45,10 +45,6 @@ class WeatherAgent: }, } - # self.system_prompt = """You are an assistant that can perform weather searches using function calls. - # When a user asks for weather information, respond with a JSON object specifying - # the function name `get_weather` and the arguments latitude and longitude are needed.""" - def get_response(self, user_query: str) -> Dict: """ Get the response from the agent for a given user query for weather. @@ -57,7 +53,6 @@ class WeatherAgent: response_list = [] while True: response = self.client.messages.create( - # system=self.system_prompt, tools=[self.get_weather_function], model="claude-3-5-sonnet-20241022", max_tokens=1024, diff --git a/tests/anthropic/test_anthropic_without_tool_call.py b/tests/anthropic/test_anthropic_without_tool_call.py index eed14be..91995f6 100644 --- a/tests/anthropic/test_anthropic_without_tool_call.py +++ b/tests/anthropic/test_anthropic_without_tool_call.py @@ -1,7 +1,6 @@ import anthropic import os from httpx import Client -# from invariant import testing import datetime import pytest import sys @@ -35,7 +34,6 @@ async def test_chat_completion_without_streaming( responses = [] for query in queries: response = client.messages.create( - # system=self.system_prompt, model="claude-3-5-sonnet-20241022", max_tokens=1024, messages=[{"role": "user", "content": query}], diff --git a/tests/open_ai/test_chat_with_tool_call.py b/tests/open_ai/test_chat_with_tool_call.py index a8c3018..72f7f8f 100644 --- a/tests/open_ai/test_chat_with_tool_call.py +++ b/tests/open_ai/test_chat_with_tool_call.py @@ -204,7 +204,6 @@ async def test_chat_completion_with_tool_call_with_streaming( model="gpt-4o", messages=history, stream=True ) final_response = {"role": "assistant", "content": ""} - attempt = 0 for chunk in chat_response_final: if chunk.choices and chunk.choices[0].delta.content: diff --git a/tests/open_ai/test_chat_without_tool_calls.py b/tests/open_ai/test_chat_without_tool_calls.py index 245ace2..b96ae43 100644 --- a/tests/open_ai/test_chat_without_tool_calls.py +++ b/tests/open_ai/test_chat_without_tool_calls.py @@ -6,7 +6,6 @@ import uuid import pytest from httpx import Client -import httpx # add tests folder (parent) to sys.path from openai import OpenAI