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
Describe the bug
The example code to invoke the hosted Gorilla Openfunctions-v2 model shows HTTP code 502. Anybody knows what’s the problem?
The example code:
def get_gorilla_response(prompt="", model="gorilla-openfunctions-v2", functions=[]):
openai.api_key = "EMPTY" # Hosted for free with ❤️ from UC Berkeley
openai.api_base = "http:https://luigi.millennium.berkeley.edu:8000/v1"
try:
completion = openai.ChatCompletion.create(
model="gorilla-openfunctions-v2",
temperature=0.0,
messages=[{"role": "user", "content": prompt}],
functions=functions,
)
# completion.choices[0].message.content, string format of the function call
# completion.choices[0].message.functions, Json format of the function call
return completion.choices[0]
except Exception as e:
print(e, model, prompt)
Screenshots
The text was updated successfully, but these errors were encountered:
Hey @philuxzhu the model was down then. This should now be fixed? I was able to run this without any issues. Please feel to re-open if you run into any issues!
Describe the bug
The example code to invoke the hosted Gorilla Openfunctions-v2 model shows HTTP code 502. Anybody knows what’s the problem?
The example code:
def get_gorilla_response(prompt="", model="gorilla-openfunctions-v2", functions=[]):
openai.api_key = "EMPTY" # Hosted for free with ❤️ from UC Berkeley
openai.api_base = "http:https://luigi.millennium.berkeley.edu:8000/v1"
try:
completion = openai.ChatCompletion.create(
model="gorilla-openfunctions-v2",
temperature=0.0,
messages=[{"role": "user", "content": prompt}],
functions=functions,
)
# completion.choices[0].message.content, string format of the function call
# completion.choices[0].message.functions, Json format of the function call
return completion.choices[0]
except Exception as e:
print(e, model, prompt)
Screenshots
![image](https://private-user-images.githubusercontent.com/12409034/338817658-bafa7cc0-a0fb-4184-a4a6-0e75f7de5bd3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzU3NzksIm5iZiI6MTcyMDczNTQ3OSwicGF0aCI6Ii8xMjQwOTAzNC8zMzg4MTc2NTgtYmFmYTdjYzAtYTBmYi00MTg0LWE0YTYtMGU3NWY3ZGU1YmQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDIyMDQzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmOWNmY2UxNTczMzAyZTc0ZmZjMGVjYTEzZmZlMGNlODdjY2UzYzdkYTQyNjE2YjdjMDJhNDMyOGJkZDRjNjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kLYfL87bIGrkU3DCu36q7RfXucjbT1GUvwyJMZEoq_4)
The text was updated successfully, but these errors were encountered: