Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Proxy route for Google AI API & Pass Context LLM Api Logic #212

Merged
merged 11 commits into from
Dec 27, 2023

Conversation

H0llyW00dzZ
Copy link
Owner

No description provided.

- [+] chore(next.config.mjs): add proxy route for Google AI API
- [+] feat(next.config.mjs): add proxy route for Google AI API
Copy link

CodeQL analysis is complete for PR #212

- [+] chore(google.ts): add interfaces for GoogleResponse, MessagePart, Message, and ModelConfig
- [+] feat(google.ts): update extractMessage method to handle gemini-pro response
- [+] feat(google.ts): update chat method to handle role in neighboring messages and model configuration
- [+] feat(google.ts): update path method to use template literals for endpoint
@H0llyW00dzZ H0llyW00dzZ changed the title Proxy route for Google AI API Proxy route for Google AI API & Pass Context LLM Api Logic Dec 27, 2023
- [+] chore(google.ts): fix typo in copyright notice
- [+] chore(constant.ts): add comment explaining the purpose of DEFAULT_SYSTEM_TEMPLATE constant
- [+] chore(chat.ts): comment out unused variable 'modelStartsWithGemini'
- [+] chore(chat.ts): remove unnecessary condition for logging system prompts
- [+] fix(google.ts): add todo comment to fix tauri desktop app issue
- [+] fix(model-config.tsx): refactor conditional rendering of model config options
- [+] feat(model-config.tsx): add ModelProvider import from constant file
- [+] refactor(model-config.tsx): remove unused variable 'isGoogleAIModel'
- [+] refactor(model-config.tsx): replace condition 'isGoogleAIModel' with 'allModels'
- [+] chore(google.ts): add module documentation comments
- [+] chore(google.ts): add copyright notice
- [+] chore(google.ts): add interface for GoogleResponse
- [+] chore(google.ts): add interface for MessagePart
- [+] chore(google.ts): add interface for Message
- [+] chore(google.ts): add interface for ModelConfig
- [+] chore(google.ts): add class documentation comments
- [+] chore(google.ts): add method documentation comments for extractMessage
- [+] chore(google.ts): add method documentation comments for chat
- [+] chore(google.ts): add method documentation comments for usage
- [+] chore(google.ts): add method documentation comments for models
- [+] fix(utils.ts): update trimTopic function to handle additional punctuation characters
- [+] chore(utils.ts): remove unused variable 'isApp'
@H0llyW00dzZ
Copy link
Owner Author

Show off pass context are perfect, it's literally chaining web url about google ai (gemini pro)

image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Show off pass context are perfect, it's literally chaining web url about google ai (gemini pro)

image

- [+] chore(constant.ts): update KnowledgeCutOffDate for "gemini-pro" model
- [+] fix(next.config.mjs): update source path for /api/proxy route to include "google"
- [+] fix(google.ts): import missing constants DEFAULT_API_HOST, DEFAULT_CORS_HOST, GEMINI_BASE_URL
- [+] chore(google.ts): add JSDoc comments to path() method
- [+] feat(google.ts): update path() method to handle routing requests through a CORS proxy for Tauri desktop app
@H0llyW00dzZ H0llyW00dzZ marked this pull request as ready for review December 27, 2023 15:11
@H0llyW00dzZ H0llyW00dzZ merged commit b9ed661 into main Dec 27, 2023
5 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the gemini-pro branch December 27, 2023 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] cannot use gemini-pro in tauri desktop
2 participants