Commit 90bea7c
authored
Fix import statement for dashscope
Environment variables (such as os.environ["DASHSCOPE_API_KEY"]) must be set before the dashscope SDK is imported and initialized.
If dashscope has been imported or initialized before setting the environment variable, the SDK may have cached the environment variable and setting it later will not take effect.1 parent ef8ea38 commit 90bea7c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
0 commit comments