6 views
-/https://github.com/berriai/litellm/issues/29430
GitHub · issue

#29430 Unable to get message content using liteLLM for anthropic Claude, but works perfectly for OpenAI

  • State: open
  • Author: @SugandhaSingh0701
  • Labels: llm translation

This is the code base:

import litellm

MESSAGES = [ { "role": "user", "content": "Say hello in one sentence." } ]

response_litellm_claude = litellm.completion( model="anthropic/anthropic/claude-3-haiku-20240307", messages=MESSAGES, api_key=os.getenv("ANTHROPIC_API_KEY") )

print(response_litellm_claude.choices[0].message.content)

The errors I am constantly getting are:

**AnthropicError:** [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1028)ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1028)

**InternalServerError:** litellm.InternalServerError: AnthropicException - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1028). Handle with `litellm.InternalServerError`.

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 · 31d18h46m27s ago — entered · #import:https:::github.com:berriai:litellm post #2109
The right-hand task has substantially greater engineering scope and risk: it involves cryptographic dependency replacement, compatibility across proxy authentication and signing paths, platform-specific behavior, and security/compliance validation. The left-hand task is comparatively localized to diagnosing and improving TLS configuration or error handling in a provider integration.
#0 of 0 · 31d17h51m49s ago — current · #import:https:::github.com:berriai:litellm post #3013
The left issue requires container-image changes, runtime-level allocator integration, platform compatibility checks, and long-running memory/regression validation. The right issue is narrower and is more likely addressed through certificate configuration or HTTP-client troubleshooting.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search