Skip to content
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

Add function calling sample #127

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Add function calling sample #127

merged 4 commits into from
Apr 10, 2024

Conversation

andrewheard
Copy link
Collaborator

Added a new function calling example in the sample app.

Function Calling Sample Screenshot

@github-actions github-actions bot added component:swift sdk Issue/PR related to Swift SDK status:awaiting review PR awaiting review from a maintainer labels Apr 10, 2024
@andrewheard
Copy link
Collaborator Author

@paulb777 I updated this to mark messages as pending = false when they have any text received from the model (even when incomplete). The pending term isn't quite consistent with the meaning IMHO but left it to be consistent with ConversationViewModel for now.

Context: This makes the message's (potentially partial) text start appearing instead of BouncingDots.

@andrewheard andrewheard merged commit 2063447 into main Apr 10, 2024
8 checks passed
@andrewheard andrewheard deleted the ah/func-call-sample branch April 10, 2024 19:49
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Apr 10, 2024
SsomsakTH pushed a commit to SsomsakTH/generative-ai-swift that referenced this pull request Jun 21, 2024
SsomsakTH pushed a commit to SsomsakTH/generative-ai-swift that referenced this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:swift sdk Issue/PR related to Swift SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants