Commit ·
a4ba91b
1
Parent(s): d12a6b6
fixed requirements
Browse filesFiles changed (2)
2 unmodified lines34562 unmodified linesrequestspython-dotenvgoogle-auth-oauthlibijson2 unmodified lines34562 unmodified linesrequestspython-dotenvgoogle-auth-oauthlibasyncio
10 unmodified lines11121314151672 unmodified lines8990919293949510 unmodified linesfrom .auth import get_credentials, save_credentials, get_user_project_id, onboard_userfrom .utils import get_user_agentfrom .config import CODE_ASSIST_ENDPOINT, DEFAULT_SAFETY_SETTINGSdef send_gemini_request(payload: dict, is_streaming: bool = False) -> Response:72 unmodified linesdef _handle_streaming_response(resp) -> StreamingResponse:"""Handle streaming response from Google API."""import asyncioasync def stream_generator():try:10 unmodified lines1112131415161772 unmodified lines90919293949510 unmodified linesfrom .auth import get_credentials, save_credentials, get_user_project_id, onboard_userfrom .utils import get_user_agentfrom .config import CODE_ASSIST_ENDPOINT, DEFAULT_SAFETY_SETTINGSimport asynciodef send_gemini_request(payload: dict, is_streaming: bool = False) -> Response:72 unmodified linesdef _handle_streaming_response(resp) -> StreamingResponse:"""Handle streaming response from Google API."""async def stream_generator():try:
requirements.txt+1-1
src/google_api_client.py+1-1