You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importopenaiopenai.api_key='your-api-key'response=openai.Completion.create(
model="your-custom-model-name", # Replace with your custom model nameprompt="Your prompt here",
max_tokens=100
)
print(response.choices[0].text)
example as created by openai
we need a python server with simple rest interface
this python server queries more than 1 custom chatgpt
we embed a chat widget in mdbook
this chat widget queries the python server and lets people interact with the custom chat gpt
prepromt the chat gpt to answer mainly from the info provided
our aim is to allow people to talk to our mdbooks. we will feed a pdf text only with links into chatgpt
can we make the example code
The text was updated successfully, but these errors were encountered:
example as created by openai
our aim is to allow people to talk to our mdbooks. we will feed a pdf text only with links into chatgpt
can we make the example code
The text was updated successfully, but these errors were encountered: