AILanguageCompanion / test_deepseek.py
koura718's picture
Change baseclient to custom_openai_client
2cf6258
raw
history blame
707 Bytes
from deepseek_client import DeepseekClient
def test_deepseek():
try:
print("Creating DeepseekClient...")
client = DeepseekClient()
messages = [
{
"role": "user",
"content": "こんにちは。あなたのモデルは何でしょうか?"
}
]
print("\nSending test message...")
response = client.create(
messages=messages,
model="deepseek-chat-67b-alpha"
)
print("\nResponse received:")
print(response)
except Exception as e:
print(f"\nError occurred: {str(e)}")
if __name__ == "__main__":
test_deepseek()