adrienbrault / instructrice

👩‍🏫 Typed LLM Outputs in PHP. Supports GPT, Claude, Gemini or any OpenAI compatible provider!
MIT License
24 stars 4 forks source link

Support custom OpenAI apis with a DSN #2

Open adrienbrault opened 6 months ago

adrienbrault commented 6 months ago

Using a DSN like symfony mailer/messenger. For example, for together:

openai://:${TOGETHER_API_KEY}@api.together.xyz/v1/chat/completions?model=meta-llama%2FLlama-3-70b-chat-hf&strategy=json
together://:${TOGETHER_API_KEY}@meta-llama%2FLlama-3-70b-chat-