Skip to content

feat: add function call support for Gemini integration#31

Merged
akshaydeo merged 1 commit intomainfrom
05-12-fix_genai_http_router_integration_fixes
May 13, 2025
Merged

feat: add function call support for Gemini integration#31
akshaydeo merged 1 commit intomainfrom
05-12-fix_genai_http_router_integration_fixes

Conversation

@Pratham-Mishra04
Copy link
Copy Markdown
Collaborator

Add function call support to Gemini integration

This PR enhances the Gemini integration by adding support for function calls in the request conversion process. When a Gemini request contains a function call, it's now properly converted to the Bifrost format with appropriate tool calls.

Key changes:

  • Renamed main.go to types.go to better reflect its content
  • Added handling for function calls in the message conversion logic
  • Implemented proper mapping of function call parameters
  • Added a utility StrPtr function for string pointer conversion
  • Updated the Bifrost core dependency to v1.0.5

This change ensures that function calls in Gemini requests are properly processed and converted to the Bifrost format, enabling more advanced interactions with the Gemini API.

Copy link
Copy Markdown
Collaborator Author

Pratham-Mishra04 commented May 12, 2025

@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-12-fix_genai_http_router_integration_fixes branch from 2b79ee6 to 1febe26 Compare May 12, 2025 10:18
@Pratham-Mishra04 Pratham-Mishra04 changed the base branch from main to graphite-base/31 May 12, 2025 17:46
@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-12-fix_genai_http_router_integration_fixes branch from 1febe26 to bd5e3db Compare May 12, 2025 17:46
@Pratham-Mishra04 Pratham-Mishra04 changed the base branch from graphite-base/31 to 05-12-feat_prometheus_and_graphana_setup_added_for_http_transport_tracking May 12, 2025 17:46
@Pratham-Mishra04 Pratham-Mishra04 marked this pull request as ready for review May 12, 2025 17:55
@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-12-fix_genai_http_router_integration_fixes branch from bd5e3db to 33c657e Compare May 13, 2025 12:25
@akshaydeo akshaydeo changed the base branch from 05-12-feat_prometheus_and_graphana_setup_added_for_http_transport_tracking to graphite-base/31 May 13, 2025 19:41
@akshaydeo akshaydeo force-pushed the 05-12-fix_genai_http_router_integration_fixes branch from 33c657e to 4b796c8 Compare May 13, 2025 19:41
@graphite-app graphite-app Bot changed the base branch from graphite-base/31 to main May 13, 2025 19:41
@akshaydeo akshaydeo force-pushed the 05-12-fix_genai_http_router_integration_fixes branch from 4b796c8 to 37a65dc Compare May 13, 2025 19:41
@akshaydeo akshaydeo merged commit b49e8d1 into main May 13, 2025
1 check passed
@Pratham-Mishra04 Pratham-Mishra04 deleted the 05-12-fix_genai_http_router_integration_fixes branch May 13, 2025 20:06
akshaydeo added a commit that referenced this pull request Nov 17, 2025
# Add function call support to Gemini integration

This PR enhances the Gemini integration by adding support for function calls in the request conversion process. When a Gemini request contains a function call, it's now properly converted to the Bifrost format with appropriate tool calls.

Key changes:
- Renamed `main.go` to `types.go` to better reflect its content
- Added handling for function calls in the message conversion logic
- Implemented proper mapping of function call parameters
- Added a utility `StrPtr` function for string pointer conversion
- Updated the Bifrost core dependency to v1.0.5

This change ensures that function calls in Gemini requests are properly processed and converted to the Bifrost format, enabling more advanced interactions with the Gemini API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants