소스 검색

clean script

guantao 1 개월 전
부모
커밋
db076f15e4
3개의 변경된 파일0개의 추가작업 그리고 54개의 파일을 삭제
  1. BIN
      out.txt
  2. 0 26
      test_anthropic.py
  3. 0 28
      test_openai.py

BIN
out.txt


+ 0 - 26
test_anthropic.py

@@ -1,26 +0,0 @@
-import os
-import asyncio
-from anthropic import AsyncAnthropic
-from dotenv import load_dotenv
-
-load_dotenv()
-
-async def test():
-    client = AsyncAnthropic()
-    models = ["claude-sonnet-4-5"]
-    print(f"Base_URL: {client.base_url}")
-    
-    for model in models:
-        print(f"\nTesting Model: {model}")
-        try:
-            response = await client.messages.create(
-                model=model,
-                max_tokens=10,
-                messages=[{"role": "user", "content": "hi"}]
-            )
-            print("Success:", [b.text for b in response.content if b.type == 'text'])
-        except Exception as e:
-            print("Error:", repr(e))
-
-if __name__ == "__main__":
-    asyncio.run(test())

+ 0 - 28
test_openai.py

@@ -1,28 +0,0 @@
-import os
-import asyncio
-from openai import AsyncOpenAI
-from dotenv import load_dotenv
-
-load_dotenv()
-
-async def test():
-    client = AsyncOpenAI(
-        api_key=os.getenv("ANTHROPIC_API_KEY"),
-        base_url="https://imds.ai/v1"
-    )
-    models = ["gpt-4o", "claude-3.5-sonnet", "claude-3-5-sonnet-20240620"]
-    
-    for model in models:
-        print(f"\nTesting OpenAI-Compat Model: {model}")
-        try:
-            response = await client.chat.completions.create(
-                model=model,
-                max_tokens=10,
-                messages=[{"role": "user", "content": "hi"}]
-            )
-            print("Success:", response.choices[0].message.content)
-        except Exception as e:
-            print("Error:", repr(e))
-
-if __name__ == "__main__":
-    asyncio.run(test())