Private
Public Access
1
0

Remove go-openai

This commit is contained in:
2024-04-29 06:14:21 +00:00
parent 08a2027332
commit ffe9d299ef
6 changed files with 161 additions and 59 deletions

View File

@@ -19,7 +19,7 @@ type Context struct {
Config *Config
Store ConversationStore
Chroma *tty.ChromaHighlighter
Chroma *tty.ChromaHighlighter
EnabledTools []model.Tool
}
@@ -75,7 +75,8 @@ func (c *Context) GetCompletionProvider(model string) (provider.ChatCompletionCl
for _, m := range *c.Config.OpenAI.Models {
if m == model {
openai := &openai.OpenAIClient{
APIKey: *c.Config.OpenAI.APIKey,
BaseURL: "https://api.openai.com/v1",
APIKey: *c.Config.OpenAI.APIKey,
}
return openai, nil
}