Commit f0e08ab
fix(provider): iflow provider should use merged provider config (#751)
Fix a bug where iflow provider's createModel function was using the
static iflowProvider object instead of the merged _provider parameter.
This prevented the provider from reading apiKey from config file
(provider.iflow.options.apiKey), causing requests to be sent without
x-iflow-signature header when IFLOW_API_KEY env var was not set.
Changes:
- Use _provider instead of iflowProvider in getProviderApiKey call
- Use _provider instead of iflowProvider in createModelCreator call
This ensures the provider respects user configuration and properly
generates authentication signatures for all API requests.
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6c7bff6 commit f0e08ab
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments