Comments (3)
from gorilla.
Hey @Marcseb I just tried it out, and looks like I can hit our endpoints for the given model. Can you try with openai==0.28.xx
?
Here's a colab notebook if that helps: https://colab.research.google.com/drive/11HJWR3ylG1HSE2v78W1gRK-dKkSA0pHe?usp=sharing
from gorilla.
Hey @Marcseb I just tried it out, and looks like I can hit our endpoints for the given model. Can you try with
openai==0.28.xx
?Here's a colab notebook if that helps: https://colab.research.google.com/drive/11HJWR3ylG1HSE2v78W1gRK-dKkSA0pHe?usp=sharing
There has been some refactoring of the LangChain code earlier this year - the code should be as follows:
from langchain_openai import ChatOpenAI
chat_model = ChatOpenAI(
openai_api_base="http://zanino.millennium.berkeley.edu:8000/v1",
openai_api_key="EMPTY",
model="gorilla-7b-hf-v1",
verbose=True
)
and the prompt
example = chat_model.invoke("I want to translate from English to Chinese")
print(example.content)
I checked with the latest version of openai
1.23.6 at it works fine.
I've opened a PR #400 to update the blog post.
from gorilla.
Related Issues (20)
- [bug] Berkeley Function-Calling Leaderboard: <Issue> HOT 3
- RAFT raft.py CLI arguments naming broke `--embedding-model` and `--completion-model` in PR #410 HOT 1
- Java/Javascript split questions HOT 2
- How to evaluate android function call[feature] HOT 1
- [bug] LlamaHandler format HOT 4
- Leaderboard data bug + suggested fix HOT 1
- [bug] Hosted Gorilla: Expired HTTPS certificate HOT 2
- how to test new model on BFCL? HOT 2
- [bug] openfunctions-v2 default chat template
- [feature] Add multi-turn conversational function calling category for benchmarking HOT 2
- the evaluation of class relevance in BFCL maybe unfair HOT 1
- What format was used for the final fine-tuning of LLaMA2-7B in RAFT? HOT 1
- [bug] Hosted Gorilla: <Issue> HOT 6
- The Urban Dictionary from the RapidAPI is not serving, can't evaluate execution data
- auto fill missed mandatory param is a nightmare HOT 3
- [bug] Hosted Gorilla: <Issue> HOT 2
- [bug] Hosted Gorilla: <Issue> HOT 1
- [bug] Hosted Gorilla: <Issue> HOT 2
- Rapid API error (Yahoo Finance, https://rapidapi.com/sparior/api/yahoo-finance15) is inaccessible HOT 6
- Local CUDA Support for RAFT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gorilla.