-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Vertex AI] Align text and add close keyboard function in Sample Project #12887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 126 commits
Commits
Show all changes
127 commits
Select commit
Hold shift + click to select a range
e290ab4
Add prototype for Firebase Vertex AI
andrewheard da7e247
Update generative-ai-swift dependency
andrewheard 0d87151
Use Swift 5.9 `AccessLevelOnImport`
andrewheard 71ac326
Set Vertex AI endpoint in `RequestOptions`
andrewheard 0f0d35a
Revert "Use Swift 5.9 `AccessLevelOnImport`"
andrewheard 7c5e5c3
Add alternative API surface that returns `GenerativeModel` instances
andrewheard ee6651c
Add sample apps using Vertex AI
andrewheard 202192f
Update generative-ai-swift dependency
andrewheard 9698be2
Fix optional VertexAIProvider unwrapping
andrewheard d0b4d1b
Update `generative-ai-swift` dependency
andrewheard 25bda5a
Prototype and sample fixes
andrewheard 6174462
Fork `google-generative-ai` for Firebase (#12564)
andrewheard 575a69b
Use forked `google-generative-ai` in Vertex AI samples (#12574)
andrewheard 6f9a344
Add CI workflow for Vertex AI (#12577)
andrewheard cb2f143
Fork `generative-ai-swift` tests for Vertex AI (#12584)
andrewheard 1626fb7
Add local App Check package to sample targets (#12576)
morganchen12 3b4b436
Use `generative-ai-swift` tests in Vertex AI (#12585)
andrewheard f8d4278
Add App Check tests in `GenerativeModelTests` (#12590)
andrewheard 8d46fe3
Make `generativeModel` an instance method of `VertexAI` (#12599)
andrewheard 38ddd25
Update test JSON payloads with Vertex AI output (#12615)
andrewheard 237485f
Build Sample in CI (#12616)
paulb777 05f3d4f
Fix `CitationMetadata` parsing in Vertex AI (#12626)
andrewheard 4e3a4d1
Manage location on VertexAI instead of model (#12630)
paulb777 a89956f
VertexAI Component tests; fix instance generation for different regio…
paulb777 19b2004
Add function calling support in Vertex AI (#12633)
andrewheard 27617c4
Add `-Preview` suffix to `FirebaseVertexAI` library name (#12641)
andrewheard 950c4c8
Fix model name in Vertex AI multi-modal sample (#12645)
andrewheard 9812055
Add `totalBillableCharacters` to `CountTokensResponse` in Vertex AI (…
andrewheard 39ea53a
Rename the Vertex AI parameter `region` to `location` (#12656)
andrewheard c3ad6f1
Update to prod endpoint in Vertex AI (#12657)
andrewheard cbc3e8c
[VertexAI] Consolidate to single sample app (#12662)
paulb777 f1f2338
Add platform tags in `x-goog-api-client` (#12680)
andrewheard 1b67b2c
[vertex-ai] Fix for SwiftFormat 0.53.5 (#12683)
paulb777 07caa9d
Add `functionCalls` accessor to `GenerateContentResponse` (#12690)
andrewheard 7b85605
Vertex AI preview versioning (#12691)
paulb777 45c3c59
Remove `location` from Vertex AI public API (#12706)
andrewheard 468013c
Remove `apiVersion` from `RequestOptions` in Vertex AI (#12707)
andrewheard df34f3b
Add placeholder `GoogleService-Info.plist` to Vertex AI sample (#12724)
andrewheard 110f391
Handle `totalBillableCharacters` optional decoding in Vertex AI (#12715)
andrewheard 4c07757
Add function calling sample in Vertex AI (#12745)
andrewheard 29c2248
Add forced function calling support in Vertex AI (#12748)
andrewheard c7784f5
Add system instruction support in Vertex AI (#12749)
andrewheard fc0f8a4
Remove FirebaseAppCheck module from Vertex AI sample app (#12754)
andrewheard 113a100
Rename GenerativeAISample to VertexAISample (#12755)
andrewheard 9d304a1
Add `usageMetadata` to `GenerateContentResponse` in Vertex AI (#12777)
andrewheard 2cbae6e
Add public API tests for `GenerateContentResponse` in Vertex AI (#12791)
andrewheard 3b990c1
Merge branch 'main' into vertex-ai
andrewheard a89224c
[Vertex AI] Add Swift major version to language tag (#12829)
andrewheard b3ffeb1
[Vertex AI] Update `Citation` decoding to handle optional `startIndex…
andrewheard fc4d6e6
[Vertex AI] Re-added `location` parameter to public API (#12835)
andrewheard a7f44fa
[Vertex AI] Remove public `Codable` conformance (#12833)
andrewheard 6e1a429
[Vertex AI] Add `location` checks for slashes and whitespace (#12849)
andrewheard fb48938
Cherrypick CI fixes into vertex-ai branch (#12862)
andrewheard 239ef8f
[Vertex AI] Integrate with AppCheckInterop (#12856)
andrewheard 35c206a
Add prototype for Firebase Vertex AI
andrewheard fec29fd
Update generative-ai-swift dependency
andrewheard 7e2bfea
Use Swift 5.9 `AccessLevelOnImport`
andrewheard 090ce9c
Set Vertex AI endpoint in `RequestOptions`
andrewheard 3a3b570
Revert "Use Swift 5.9 `AccessLevelOnImport`"
andrewheard cb98207
Add alternative API surface that returns `GenerativeModel` instances
andrewheard 277c289
Add sample apps using Vertex AI
andrewheard 6caba0d
Update generative-ai-swift dependency
andrewheard 57aabb6
Fix optional VertexAIProvider unwrapping
andrewheard 202919b
Update `generative-ai-swift` dependency
andrewheard e2003e2
Prototype and sample fixes
andrewheard ecec18d
Fork `google-generative-ai` for Firebase (#12564)
andrewheard e5efafd
Use forked `google-generative-ai` in Vertex AI samples (#12574)
andrewheard 38c5724
Add CI workflow for Vertex AI (#12577)
andrewheard ed1c3a6
Fork `generative-ai-swift` tests for Vertex AI (#12584)
andrewheard bc2f6af
Add local App Check package to sample targets (#12576)
morganchen12 17f0954
Use `generative-ai-swift` tests in Vertex AI (#12585)
andrewheard 0ba8848
Add App Check tests in `GenerativeModelTests` (#12590)
andrewheard 41f4474
Make `generativeModel` an instance method of `VertexAI` (#12599)
andrewheard d2ced3b
Update test JSON payloads with Vertex AI output (#12615)
andrewheard c0bdcab
Build Sample in CI (#12616)
paulb777 e8e48e7
Fix `CitationMetadata` parsing in Vertex AI (#12626)
andrewheard f5cdb64
Manage location on VertexAI instead of model (#12630)
paulb777 a67dfa6
VertexAI Component tests; fix instance generation for different regio…
paulb777 d4c036d
Add function calling support in Vertex AI (#12633)
andrewheard 336ccf6
Add `-Preview` suffix to `FirebaseVertexAI` library name (#12641)
andrewheard 1089da9
Fix model name in Vertex AI multi-modal sample (#12645)
andrewheard 07cdaa9
Add `totalBillableCharacters` to `CountTokensResponse` in Vertex AI (…
andrewheard 1c1f720
Rename the Vertex AI parameter `region` to `location` (#12656)
andrewheard 63293c1
Update to prod endpoint in Vertex AI (#12657)
andrewheard 33ae50d
[VertexAI] Consolidate to single sample app (#12662)
paulb777 b96cf18
Add platform tags in `x-goog-api-client` (#12680)
andrewheard f1eb164
[vertex-ai] Fix for SwiftFormat 0.53.5 (#12683)
paulb777 2362b33
Add `functionCalls` accessor to `GenerateContentResponse` (#12690)
andrewheard e8d741e
Vertex AI preview versioning (#12691)
paulb777 9c3422b
Remove `location` from Vertex AI public API (#12706)
andrewheard 2544f77
Remove `apiVersion` from `RequestOptions` in Vertex AI (#12707)
andrewheard e940758
Add placeholder `GoogleService-Info.plist` to Vertex AI sample (#12724)
andrewheard 9b678e4
Handle `totalBillableCharacters` optional decoding in Vertex AI (#12715)
andrewheard b283714
Add function calling sample in Vertex AI (#12745)
andrewheard e587733
Add forced function calling support in Vertex AI (#12748)
andrewheard 14b5a02
Add system instruction support in Vertex AI (#12749)
andrewheard 1a8d228
Remove FirebaseAppCheck module from Vertex AI sample app (#12754)
andrewheard fedd7c8
Rename GenerativeAISample to VertexAISample (#12755)
andrewheard 46be683
Add `usageMetadata` to `GenerateContentResponse` in Vertex AI (#12777)
andrewheard 14ffa02
Add public API tests for `GenerateContentResponse` in Vertex AI (#12791)
andrewheard 1df22f8
[Vertex AI] Add Swift major version to language tag (#12829)
andrewheard 0a85432
[Vertex AI] Update `Citation` decoding to handle optional `startIndex…
andrewheard 4423b60
[Vertex AI] Re-added `location` parameter to public API (#12835)
andrewheard 42e1d51
[Vertex AI] Remove public `Codable` conformance (#12833)
andrewheard e4625bd
[Vertex AI] Add `location` checks for slashes and whitespace (#12849)
andrewheard 948df07
[Vertex AI] Integrate with AppCheckInterop (#12856)
andrewheard 6a7dd8e
Align and Close Keyboard
1998code 0ef7e55
Revert Google Info
1998code b0618f2
Rm TeamID
1998code 968dac7
Update VertexAISampleApp.swift
1998code 419a7ac
Update VertexAISampleApp.swift
1998code 04239e1
Style
1998code 871b9bd
Update SummarizeScreen.swift
1998code 7d061c5
Fix Keyboard Close
1998code d639c34
Update InputField
1998code b3f7ea0
Remove Padding
1998code 689f651
Remove Padding
1998code 97f97cb
Remove Comment and empty line
1998code b524818
Added Focus to PhotoReasoningScreen
1998code f382ea6
Update FunctionCallingScreen.swift
1998code b260679
Change from user to system
1998code e15bc95
Update Indent / Style
1998code 65b440f
Revert "Change from user to system"
1998code 2af921d
Merge branch 'vertex-ai' into vertex-ai
1998code 0d7bfeb
Merge branch 'vertex-ai' of https://github.com/1998code/firebase-ios-…
1998code 4c87d46
Correct Package.swift
1998code 3c27e70
Delete GenerativeAISwift.swift
1998code File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1998code marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
import Foundation | ||
|
||
#if !os(macOS) && !os(iOS) | ||
#warning("Only iOS, macOS, and Catalyst targets are currently fully supported.") | ||
#endif | ||
|
||
/// Constants associated with the GenerativeAISwift SDK | ||
@available(iOS 15.0, macOS 11.0, macCatalyst 15.0, *) | ||
public enum GenerativeAISwift { | ||
static let baseURL = "https://firebaseml.googleapis.com" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.