Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Gemini and Vertex follow-ups from PR #369

Đang mở
#389 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
google-cloud, python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
13
Fork
0
Merge trung bình
2 giờ 4 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của kiat/codeAssist

Tất cả issue của kiat/codeAssist

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.