feat: load .env file from current working directory upward recursively

This commit is contained in:
lilong.129
2025-03-20 14:23:56 +08:00
parent b5f3e7ff96
commit 3801ffb744
4 changed files with 45 additions and 14 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ import (
"strings"
"github.com/cloudwego/eino-ext/components/model/openai"
"github.com/cloudwego/eino/components/model"
"github.com/cloudwego/eino/schema"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
@@ -44,7 +45,7 @@ func NewPlanner(ctx context.Context) (*Planner, error) {
type Planner struct {
ctx context.Context
model *openai.ChatModel
model model.ChatModel
parser *ActionParser
}