Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Gemini and Vertex follow-ups from PR #369

Open
#389 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
google-cloud, python
Domain
backend

Research direction

The issue identifies backend/requirements.txt, code_editor.py and GeminiProvider, but the four follow-ups span validation, chat routing, dependency compatibility and credential failure delays. Start by reading PR #369 and the backend Docker image’s dependency versions; choose one follow-up and inspect its related tests or settings path. Done means the selected change has a defined validation or behavior and its relevant tests pass.

Written by the indexing model from the issue text.

Description

Follow-ups from PR #369 (Gemini over Vertex AI) that were out of scope for that PR.

1. Validate Vertex locations against known regions

The Vertex location field accepts any well-formed string (for example mars-north1) and only fails when a call is made. Add a list of known Vertex regions to validate against, or validate with a cheap call when settings are saved.

2. Move regular Gemini AI chat onto the SDK provider

Submission feedback for Gemini uses GeminiProvider (google-genai SDK, v1 API), but regular Gemini in /ai_chat still uses REST v1beta with post_gemini_with_retry in code_editor.py. Move chat onto the provider so there is one code path with shared retry, timeout and error mapping.

3. Pin a minimum google-genai version

google-genai is unpinned in backend/requirements.txt. The Gemini provider relies on HttpOptions.timeout and the v1 API. Pin a minimum version that supports both, checked against the version in the backend Docker image. An unpinned SQLAlchemy already broke fresh builds once (fixed in #377).

4. ADC credential check takes about 9 seconds to fail

With Vertex in ADC mode and no credentials available, a request takes about 9 seconds to fail while google-auth probes the GCE metadata server. The error itself is now a clear 400 (PR #369), but the delay remains. Consider a pre-check for credentials, or document the GCE_METADATA_HOST and timeout settings.

Dominant language
Python
Stars
13
Forks
0
Avg merge
2h 4m
Merged PRs (30d)
1

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from kiat/codeAssist

All issues in kiat/codeAssist

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.