// OPENAI_API_KEY, and there is no fallback from one to the other. All clients
// share the authorizer, so one refresh runs at a time.
func modelEndpoint(config Config, dir string) (string, ModelAuthorizer, error) {
- if config.Endpoint == endpointAPI {
+ if config.Endpoint == configEndpointAPI {
key := os.Getenv("OPENAI_API_KEY")
if key == "" {
return "", nil, errors.New("endpoint api needs OPENAI_API_KEY")
Instructions string
Tools []ModelTool
Input []any
- Node *nodeKey
+ Node *NodeKey
Turn string
}