Add OpenAi Base URL Override for OpenRouter Support and ENV variable#134
Open
HowieDuhzit wants to merge 6 commits intohyperfy-xyz:devfrom
Open
Add OpenAi Base URL Override for OpenRouter Support and ENV variable#134HowieDuhzit wants to merge 6 commits intohyperfy-xyz:devfrom
HowieDuhzit wants to merge 6 commits intohyperfy-xyz:devfrom
Conversation
add OpenAI base URL
- Added detailed error logging for AI client initialization and operations. - Improved configuration status logging for AI system setup. - Wrapped AI operations in try-catch blocks to handle and log errors effectively. - Ensured consistent error handling across create, edit, fix, and classify methods.
…ons in ServerAI.js - Removed redundant error handling in AI client initialization. - Simplified logging for AI configuration status. - Enhanced method implementations for create, edit, fix, and classify by removing try-catch blocks and directly handling errors. - Improved readability and maintainability of the code.
…mpletions - Changed API calls from responses.create to chat.completions.create for improved functionality. - Updated method implementations for create, edit, fix, and classify to utilize message-based input format. - Enhanced response handling to return content from the new API structure.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Please include a summary of the changes and which component(s) are affected. Explain how your changes improve or modify the component's functionality within the Hyperfy ecosystem.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe your tests:
Test Configuration:
Checklist: