blakeblackshear.frigate/frigate/genai
D34DC3N73R 180b0af3c9
Adapt openai.py to work with xAI (#16903)
* Adapt openai.py to work with xAI

It appears xAI is a bit more strict in regards to how the prompt is sent. This changes the prompt to be a dictionary with `"type": "text"` which works with OpenAI and xAI.

* Adapt openai.py to work with xAI

add "detail": "low"

* Adapt openai.py to work with xAI

Apply Ruff formatting and linting fixes
2025-03-03 12:53:24 -07:00
..
__init__.py
azure-openai.py
gemini.py
ollama.py
openai.py Adapt openai.py to work with xAI (#16903) 2025-03-03 12:53:24 -07:00