MervinPraison / PraisonAI

PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration.
https://docs.praison.ai
MIT License
1.24k stars 188 forks source link

How to use claude ? #11

Closed ameerfayiz closed 2 weeks ago

ameerfayiz commented 3 months ago

i tried setting

OPENAI_API_BASE = https://api.anthropic.com/v1/messages or OPENAI_API_BASE = https://api.anthropic.com/v1 and OPENAI_MODEL_NAME = claude-3-opus-20240229

along with proper OPENAI_API_KEY.

but it gives error :

File "C:\Users\Ameer\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai_base_client.py", line 988, in _request raise self._make_status_error_from_response(err.response) from None openai.NotFoundError: Error code: 404 - {'type': 'error', 'error': {'type': 'not_found_error', 'message': 'Not Found'}}

what am i doing wrong ? i can use grok and openAi without error

MervinPraison commented 2 weeks ago

You could follow this doc to use Claude https://docs.praison.ai/models/anthropic/