The query generated by my python code answers as if it is a vanilla flavored chatgpt. The calls that I think were used to pass the assistant id or the file id have been deprecated. Can you tell me how to get the assistant that has the KB to respond. I think i have to pass the assistant ID but i don’t know how.
import os
from openai import OpenAI
# Set your API key here
api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
# Instantiate the OpenAI client
client = OpenAI(api_key=api_key)
# Using the client to create a chat completion
response = client.chat.completions.create(
model="gpt-4",
messages=[
{"role": "user", "content": "what is SOL'"}
],
max_tokens=60
)
# Print the response
print(response.choices[0].message.content)