From 969d25209ca52f4a0866ccc2362f6a8902a84fc2 Mon Sep 17 00:00:00 2001 From: idchlife Date: Mon, 9 Mar 2026 09:59:27 +0300 Subject: [PATCH] using openailike for llamaindex that will allow of usage of any openai compatible models via api, and not just hardcoded models inside default OpenAI class in llamaindex --- services/rag/.DS_Store | Bin 8196 -> 8196 bytes services/rag/llamaindex/.env.dist | 1 + services/rag/llamaindex/PLANNING.md | 7 ++++ services/rag/llamaindex/config.py | 18 +++++++-- .../helpers/openai_compatible_llm.py | 35 ++++++++++++++++++ services/rag/llamaindex/requirements.txt | 1 + 6 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 services/rag/llamaindex/helpers/openai_compatible_llm.py diff --git a/services/rag/.DS_Store b/services/rag/.DS_Store index 5bd78c607c9e3da706e2985d1f0f69fe1639eccb..5c7d7c4a5b90ff7c9b645452de3f3b520324e874 100644 GIT binary patch delta 267 zcmZp1XmOa}FUrEez`)4BAi%(o%#gv5$dJj9msGy7a2or>2Hwr=94s7+ER!3B#p;vF ziwlx+@{@qdcO(_$WEPhg7+hmyVrF4wW9MM!;O2-8&d4thE=epYEp|#QiU#pQ^7C_& zVC=-Cu*}r*cmWaT{JfIH%)Hbhu!hW(RG^ZW@XWlF{Bo!K(!7*nu-;&Z1P3PvXS{$! zwQIGRxrL5`p|N?bjzYDik%5kaiLqI2EhmSlvc7dte0EN5UVazQaX`Qb^bZ*DLTMP) c4fKiRW>oPx# delta 67 zcmZp1XmOa}FUrioz`)4BAi%(o%#gv5$dJj9ms7m4a2or>2Hwr=94s7+%#))