This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
forked from ChatGPTNextWeb/NextChat
-
Notifications
You must be signed in to change notification settings - Fork 8
Proxy route for Google AI API & Pass Context LLM Api Logic #212
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- [+] chore(next.config.mjs): add proxy route for Google AI API - [+] feat(next.config.mjs): add proxy route for Google AI API
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
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'
- [+] 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.