LP_2-test / main.py

Commit History

feat: Add debug prompt logging functionality with environment variable support
0c2542b

DocUA commited on

feat: Оновлення UI для GPT-5.2 та додавання контролю MaxTokens
a765e3e

DocUA commited on

feat: Інтеграція GPT-5.2 з підтримкою reasoning
492b465

DocUA commited on

Add diagnostic logging and raw httpx connectivity test for OpenAI API
98f5eca

DocUA commited on

Disable HTTP/2 in httpx client for OpenAI and DeepSeek to avoid 421 Misdirected Request errors and ensure consistent connections in HF Spaces
381cd06

DocUA commited on

Refactor httpx client usage for OpenAI and DeepSeek: implement context management to prevent socket leaks and improve error logging
3e63a13

DocUA commited on

Fix OpenAI/DeepSeek HF Spaces connectivity: use custom httpx.Client to handle asyncio conflicts
60a364a

DocUA commited on

Enhance API key debugging: add length and prefix display for OPENAI_API_KEY; update provider availability checks to use os.getenv for real-time state
71df805

DocUA commited on

Enhance provider management: normalize response keys, add availability checks, and improve Gradio interface for AI providers
a09e8cb

DocUA commited on

Revert httpx.Client customization: use default OpenAI SDK settings for async compatibility in HF Spaces
5c25abd

DocUA commited on

Fix persistent Connection Errors for OpenAI/DeepSeek: disable HTTP/2 and use robust httpx client
48ae0da

DocUA commited on

Fix Connection error for OpenAI and DeepSeek: add retry logic and increase timeout to 120s
2ef2be1

DocUA commited on

Improve DeepSeek compatibility (R1/reasoner support) and fix lint errors in main.py
558b73f

DocUA commited on

Fix OpenAI gpt-4.1 API parameters: role 'developer', max_completion_tokens, and reasoning effort support; update max_tokens in default config
39e57fa

DocUA commited on

Increase max_tokens for all models in generation settings to enhance response capacity
a3e169a

DocUA commited on

Add JSON extraction utility and enhance analysis methods for better error handling
59fabbc

DocUA commited on

Add placeholders for court decision text and comment in legal position prompt
d814828

DocUA commited on

Clean deployment without large index files
461adca

DocUA commited on