We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7da1351 + ea9a1d7 commit 24b6132Copy full SHA for 24b6132
1 file changed
src/marvin/client/openai.py
@@ -84,9 +84,7 @@ class MarvinClient(pydantic.BaseModel):
84
85
client: Client = pydantic.Field(
86
default_factory=lambda: Client(
87
- **settings.openai.model_dump(
88
- exclude={"chat", "images", "audio", "assistants"}
89
- )
+ api_key=getattr(settings.openai.api_key, "get_secret_value", lambda: "")()
90
)
91
92
@@ -170,9 +168,7 @@ class AsyncMarvinClient(pydantic.BaseModel):
170
168
171
169
client: AsyncClient = pydantic.Field(
172
default_factory=lambda: AsyncClient(
173
174
175
176
177
178
0 commit comments