mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-08 07:11:06 +00:00
fix: Spelling Grog to Groq. The setup for the vendor must be done, because of ENV prefix for setting.
This commit is contained in:
parent
38d4b459bd
commit
19a0b8a1d6
@ -3,6 +3,7 @@ package core
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/danielmiessler/fabric/vendors/groq"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -14,11 +15,10 @@ import (
|
|||||||
"github.com/danielmiessler/fabric/vendors/azure"
|
"github.com/danielmiessler/fabric/vendors/azure"
|
||||||
"github.com/danielmiessler/fabric/vendors/dryrun"
|
"github.com/danielmiessler/fabric/vendors/dryrun"
|
||||||
"github.com/danielmiessler/fabric/vendors/gemini"
|
"github.com/danielmiessler/fabric/vendors/gemini"
|
||||||
"github.com/danielmiessler/fabric/vendors/groc"
|
|
||||||
"github.com/danielmiessler/fabric/vendors/ollama"
|
"github.com/danielmiessler/fabric/vendors/ollama"
|
||||||
"github.com/danielmiessler/fabric/vendors/openai"
|
"github.com/danielmiessler/fabric/vendors/openai"
|
||||||
"github.com/danielmiessler/fabric/vendors/openrouter"
|
"github.com/danielmiessler/fabric/vendors/openrouter"
|
||||||
"github.com/danielmiessler/fabric/vendors/siliconcloud"
|
"github.com/danielmiessler/fabric/vendors/siliconcloud"
|
||||||
"github.com/danielmiessler/fabric/youtube"
|
"github.com/danielmiessler/fabric/youtube"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
@ -60,7 +60,7 @@ func NewFabricBase(db *db.Db) (ret *Fabric) {
|
|||||||
ret.DefaultModel = ret.AddSetupQuestionCustom("Model", true,
|
ret.DefaultModel = ret.AddSetupQuestionCustom("Model", true,
|
||||||
"Enter the index the name of your default model")
|
"Enter the index the name of your default model")
|
||||||
|
|
||||||
ret.VendorsAll.AddVendors(openai.NewClient(), azure.NewClient(), ollama.NewClient(), groc.NewClient(),
|
ret.VendorsAll.AddVendors(openai.NewClient(), azure.NewClient(), ollama.NewClient(), groq.NewClient(),
|
||||||
gemini.NewClient(), anthropic.NewClient(), siliconcloud.NewClient(), openrouter.NewClient())
|
gemini.NewClient(), anthropic.NewClient(), siliconcloud.NewClient(), openrouter.NewClient())
|
||||||
|
|
||||||
return
|
return
|
||||||
|
4
vendors/groc/groq.go → vendors/groq/groq.go
vendored
4
vendors/groc/groq.go → vendors/groq/groq.go
vendored
@ -1,4 +1,4 @@
|
|||||||
package groc
|
package groq
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/danielmiessler/fabric/vendors/openai"
|
"github.com/danielmiessler/fabric/vendors/openai"
|
||||||
@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
func NewClient() (ret *Client) {
|
func NewClient() (ret *Client) {
|
||||||
ret = &Client{}
|
ret = &Client{}
|
||||||
ret.Client = openai.NewClientCompatible("Groc", "https://api.groq.com/openai/v1", nil)
|
ret.Client = openai.NewClientCompatible("Groq", "https://api.groq.com/openai/v1", nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user