You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed deepclaude to my server machine.
Tried to run the README's API Usage Basic Example script:
import requests
import os
# Get API keys from environment variables
deepseek_api_key = os.getenv('DEEPSEEK_API_KEY')
anthropic_api_key = os.getenv('ANTHROPIC_API_KEY')
# Check if the keys exist
if not deepseek_api_key or not anthropic_api_key:
raise ValueError("Missing required API keys in environment variables")
response = requests.post(
"http://127.0.0.1:1337/",
headers={
"X-DeepSeek-API-Token": deepseek_api_key,
"X-Anthropic-API-Token": anthropic_api_key
},
json={
"messages": [
{"role": "user", "content": "How many 'r's in the word 'strawberry'?"}
]
}
)
print(response.json())
>python3 deepclaude-testing.py
{'error': {'message': 'DeepSeek API Error: Failed to parse response: error decoding response body', 'type': 'deepseek_parse_error'}}
This issue could be related to the issue with https://deepclaude.com/chat where the first user prompt seemingly does nothing, but subsequent prompts respond almost instantly. In that case, the prompts probably skip DeepSeek and go straight to Anthropic (this makes sense since I see records of usage in the Anthropic console but not in the DeepSeek console at the times of prompting).
The text was updated successfully, but these errors were encountered:
Installed deepclaude to my server machine.
Tried to run the README's API Usage Basic Example script:
Server reports a 400 after 5 min:
Response reports a DeepSeek API error:
This issue could be related to the issue with https://deepclaude.com/chat where the first user prompt seemingly does nothing, but subsequent prompts respond almost instantly. In that case, the prompts probably skip DeepSeek and go straight to Anthropic (this makes sense since I see records of usage in the Anthropic console but not in the DeepSeek console at the times of prompting).
The text was updated successfully, but these errors were encountered: