Commit 8d591c4
octo-patch
docs(grok): fix MemoryService initialization example
The usage example in docs/providers/grok.md passed the LLMConfig object
via a non-existent `llm_config` keyword argument, which would raise:
TypeError: MemoryService.__init__() got an unexpected keyword argument 'llm_config'
The correct parameter is `llm_profiles` which accepts a dict mapping
profile names to LLMConfig instances. Also add os.environ.get()
for the API key so the example is runnable as written.1 parent 357aefc commit 8d591c4
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | | - | |
46 | | - | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
0 commit comments