moving proxy server to the top of repo

This commit is contained in:
Krrish Dholakia 2023-08-18 09:53:49 -07:00
parent 8543d89418
commit 8ef47524bf
10 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# import openai
# import os
# os.environ["OPENAI_API_KEY"] = ""
# openai.api_key = os.environ["OPENAI_API_KEY"]
# openai.api_base ="http://localhost:5000"
# messages = [
# {
# "role": "user",
# "content": "write a 1 pg essay in liteLLM"
# }
# ]
# response = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=messages, stream=True)
# print("got response", response)
# # response is a generator
# for chunk in response:
# print(chunk)