MarinaPlius commited on
Commit
f6186de
1 Parent(s): 06e57fe

Update rag.py

Browse files
Files changed (1) hide show
  1. rag.py +2 -1
rag.py CHANGED
@@ -3,6 +3,7 @@ import os
3
  import requests
4
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
5
  import torch
 
6
 
7
 
8
  from langchain_community.vectorstores import FAISS
@@ -103,7 +104,7 @@ class RAG:
103
  def predict_completion(self, instruction, context, model_parameters):
104
 
105
  client = OpenAI(
106
- base_url=ENDPOINT_URL,
107
  api_key=os.getenv("HF_TOKEN")
108
  )
109
 
 
3
  import requests
4
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
5
  import torch
6
+ from openai import OpenAI
7
 
8
 
9
  from langchain_community.vectorstores import FAISS
 
104
  def predict_completion(self, instruction, context, model_parameters):
105
 
106
  client = OpenAI(
107
+ base_url=MODEL,
108
  api_key=os.getenv("HF_TOKEN")
109
  )
110