trustgraph/tests/unit/test_text_completion
cybermaggedon 20204d87c3
Fix OpenAI compatibility issues for newer models and Azure config (#727)
Use max_completion_tokens for OpenAI and Azure OpenAI providers:
The OpenAI API deprecated max_tokens in favor of
max_completion_tokens for chat completions. Newer models
(gpt-4o, o1, o3) reject the old parameter with a 400 error.

AZURE_API_VERSION env var now overrides the default API version:
(falls back to 2024-12-01-preview).

Update tests to test for expected structures
2026-03-28 11:19:45 +00:00
..
common Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
__init__.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
conftest.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_azure_openai_processor.py Fix OpenAI compatibility issues for newer models and Azure config (#727) 2026-03-28 11:19:45 +00:00
test_azure_openai_streaming.py Updated test suite for explainability & provenance (#696) 2026-03-13 14:27:42 +00:00
test_azure_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_azure_streaming.py Updated test suite for explainability & provenance (#696) 2026-03-13 14:27:42 +00:00
test_bedrock_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_claude_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_cohere_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_googleaistudio_processor.py Structured data 2 (#645) 2026-02-23 15:56:29 +00:00
test_llamafile_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_lmstudio_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_mistral_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_ollama_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_openai_processor.py Fix OpenAI compatibility issues for newer models and Azure config (#727) 2026-03-28 11:19:45 +00:00
test_parameter_caching.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_rate_limit_contract.py Updated test suite for explainability & provenance (#696) 2026-03-13 14:27:42 +00:00
test_tgi_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00
test_vertexai_processor.py Migrate to VertexAI to google-genai SDK from deprecated library (#632) 2026-02-09 20:43:33 +00:00
test_vllm_processor.py More LLM param test coverage (#535) 2025-09-26 01:00:30 +01:00