Closed brandonbiggs closed 1 year ago
Looks like our documentation is out of date, sorry about that! The new format for you config should look like this:
config = ContinueConfig(
...
models=Models(
default=OpenAI(
model="CodeLlama-7b-Instruct-hf",
api_base='http://localhost:8000/v1'},
context_length=4096,
timeout=5000,
prompt_templates={},
api_key=""
),
....
Also, just out of curiosity what led you to choose FastChat as the model provider? Had you already been using it for other purposes? If you're not tied to it, there are other options that tend to have easier setup, for example Ollama and LMStudio will both work on Mac
I had just barely figured that out from a different issue and was coming to add that. Thank you! That format seems to work great.
Also, just out of curiosity what led you to choose FastChat as the model provider? Had you already been using it for other purposes? If you're not tied to it, there are other options that tend to have easier setup, for example Ollama and LMStudio will both work on Mac
Good question. My setup is actually a little more complex. I'm running my LLMs on a linux system with Fastchat and I'm setting up port forwarding from my Mac to the linux system that is running fastchat. So while Continue is running on my Mac, my "local" LLM is actually running on a different server. I'm able to point the Continue config to localhost because of the port forwarding.
Nice! Just updating the documentation and then seems this is resolved, but I'll keep the issue open for a couple days just in case anything else pops up.
Makes sense. Were there any alternatives you considered among which FastChat was the best? Good to know in case anyone asks about a similar scenario.
I looked at a couple of other tools. I've had the best luck with FastChat. Seems to scale pretty well, flexible with what I've needed. Overall been super happy with it. But there are so many tools and everything is changing so fast, it's hard to keep up.
Nice, makes a lot of sense. Definitely a dynamic space!
Describe the bug When attempting to follow the FastChat OpenAI API setup instructions, I get the following error:
openai.error.APIConnectionError: Error communicating with OpenAI
To Reproduce
Environment
Config Changes Per Documetation
Logs