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

Refactor ChatGPT LLMApi #120

Merged
merged 7 commits into from
Nov 18, 2023
Merged

Refactor ChatGPT LLMApi #120

merged 7 commits into from
Nov 18, 2023

Conversation

H0llyW00dzZ
Copy link
Owner

[+] refactor(openai.ts): modify console log to include the provider name in the log message

[+] refactor(openai.ts): modify console log to include the provider name in the log message
Copy link

CodeQL analysis is complete for PR #120

[+] chore(openai.ts): add getServiceProvider() function to retrieve the service provider
[+] chore(openai.ts): update console.log statements to include the service provider information
[+] fix(openai.ts): skip text moderation for Azure provider
[+] feat(openai.ts): add accessStore variable to chat method
[+] chore(openai.ts): add note about future changes to getServiceProvider() function
[+] refactor(openai.ts): replace string literals with enum values for provider names
[+] fix(openai.ts): add condition to check if defaultModel starts with "dall-e" before executing code block
[+] fix(model-config.tsx): change styleOptions values to lowercase
[+] fix(chat.ts): set stream to true for both config objects
[+] fix(config.ts): remove default value for style in style validator
[+] chore(config.ts): update ModalConfigValidator and add note about Regex Validator safety
[+] chore(openai.ts): refactor console log statements to include provider name
[+] fix(openai.ts): handle empty moderation response and throw error with provider name
@H0llyW00dzZ H0llyW00dzZ marked this pull request as ready for review November 18, 2023 16:49
@H0llyW00dzZ H0llyW00dzZ merged commit 1530047 into main Nov 18, 2023
2 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the serviceprovider branch November 18, 2023 16:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant