Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support the Gemini Interactions API in GeminiLanguageModel

Aperta
#302 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@rizwankce ci sta già lavorando.

Dal 8/10/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
swift

Direzione di ricerca

Start by reading GeminiLanguageModel and its existing generateContent and streamGenerateContent request handling, then compare those paths with the linked Interactions API overview and migration guide. The issue suggests either an option on the existing model or a separate model type, so clarify that design before implementation. Done means Interactions API support covers the intended requests and streaming behavior, with tests for the supported features.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi!

GeminiLanguageModel currently uses the generateContent / streamGenerateContent endpoints. Google's docs now recommend the Interactions API for all new projects and say all new models, tools and agent features will launch there. generateContent is still supported but is now called legacy.

Would you be open to adding Interactions API support, either as an option on GeminiLanguageModel or as a separate model type? Some benefits:

  • Real tool-call IDs, instead of IDs generated on the client
  • system_instruction as its own field
  • Optional server-side conversation history via previous_interaction_id

Docs:

If okay i can work on it and raise PR

Thanks!

Lingua principale
Swift
Stelle
944
Fork
95
Merge medio
18h 38m
PR unite (30g)
56

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di huggingface/AnyLanguageModel

Tutte le issue di huggingface/AnyLanguageModel

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.