You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/building-with-codegen/parsing-codebases.mdx
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,21 +69,19 @@ You can customize the behavior of your Codebase instance by passing a `CodebaseC
69
69
70
70
```python
71
71
from codegen import Codebase
72
-
from codegen.sdk.codebase.config import CodebaseConfig, Secrets
72
+
from codegen.shared.configs.models.codebase import CodebaseConfig
73
+
from codegen.shared.configs.models.secrets import SecretsConfig
73
74
74
75
codebase = Codebase(
75
76
"path/to/repository",
76
-
config=CodebaseConfig(
77
-
secrets=Secrets(
78
-
openai_key="your-openai-key"# For AI-powered features
79
-
),
80
-
)
77
+
config=CodebaseConfig(debug=True),
78
+
secrets=SecretsConfig(openai_api_key="your-openai-key") # For AI-powered features
81
79
)
82
80
```
83
81
84
-
The`CodebaseConfig`allows you to configure:
85
-
-`secrets`: API keys and other sensitive information needed by the codebase
86
-
-`feature_flags`: Toggle specific features like language engines, dependency management, and graph synchronization
82
+
-`CodebaseConfig`and `SecretsConfig` allow you to configure
83
+
-`config`: Toggle specific features like language engines, dependency management, and graph synchronization
84
+
-`secrets`: API keys and other sensitive information needed by the codebase
87
85
88
86
For a complete list of available feature flags and configuration options, see the [source code on GitHub](https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/codebase/config.py).
0 commit comments