Commit b0660f9
committed
Add x-ios-bundle-identifier header to GenerativeAIService requests
This change adds the `x-ios-bundle-identifier` header to requests made by `GenerativeAIService`. The value is set to `Bundle.main.bundleIdentifier` if available. This header is sent unconditionally.
A test assertion has been added to `GenerativeModelTestUtil.swift` to verify the presence and correctness of this header in unit tests.1 parent 61aae4c commit b0660f9
File tree
2 files changed
+7
-0
lines changed- FirebaseAI
- Sources
- Tests/Unit/TestUtilities
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
0 commit comments