danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
25.11k stars 2.66k forks source link

[Feature request]: allow edit of base_url #191

Closed junmagic-ai closed 1 month ago

junmagic-ai commented 8 months ago

What do you need?

i want to be able to change the base url to another endpoint e.g. the Azure OpenAI endpoint instead of default OpenAI

GuizzyQC commented 8 months ago

I've managed to get it working on a different OpenAI API-compatible endpoint (Oobabooga) by adding a OPENAI_BASE_URL= line in ~/.config/fabric/.env

It does complain about "Unable to fetch models" and "No OpenAI API key found" (despite having an API key too), but it does work other than that.

meirm commented 8 months ago

I fixed this on an upcoming pull request where we deal with OpenAI baseURL.

maaft commented 5 months ago

@meirm which one? When will it be merged?

meirm commented 5 months ago

https://github.com/danielmiessler/fabric/pull/189

eugeis commented 1 month ago

It is available in the current release.