Commit edbca63
committed
Simplify API key setting for llama_stack
Deduplicate the API key Sprintf call by hoisting the field
name (api_key vs api_token) into a variable and performing
a single assignment after the provider-type branch.1 parent b3aa334 commit edbca63
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 134 | + | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 137 | + | |
142 | 138 | | |
| 139 | + | |
| 140 | + | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
| |||
0 commit comments