UPDATE
This commit is contained in:
+6
-1
@@ -4,7 +4,12 @@ Adapter Pattern برای API providers — سوئیچ بین GapGPT، Avalai و
|
||||
import logging
|
||||
import os
|
||||
|
||||
from openai import OpenAI
|
||||
try:
|
||||
from openai import OpenAI
|
||||
except ImportError: # pragma: no cover - optional for stripped test envs
|
||||
class OpenAI: # type: ignore[override]
|
||||
def __init__(self, *args, **kwargs):
|
||||
raise ImportError("openai package is required for RAG clients.")
|
||||
|
||||
from .config import RAGConfig, load_rag_config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user