Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few small fixes in GUI and Providers #1861

Merged
merged 15 commits into from
Apr 19, 2024
Merged

A few small fixes in GUI and Providers #1861

merged 15 commits into from
Apr 19, 2024

Conversation

kqlio67
Copy link
Contributor

@kqlio67 kqlio67 commented Apr 19, 2024

Fixed.

GUI:
- index.html

Providers:
- Llama.py
- PerplexityLabs.py

kqlio67 added 15 commits April 11, 2024 10:25
Fix providers:
- Liaobots - Fixed system message changed from "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully." to "You are a helpful assistant."

Providers added:
- Feedough - Added a new provider with GPT-3 model
- Cnote - Added a new provider with GPT-3.5 model
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Here's my review for the pull request titled "A few small fixes in GUI and Providers":


Review by g4f Copilot:

Thank you for your contribution to the project! It's great to see community engagement and efforts to improve the codebase. Here are my observations:

  1. GUI Changes:

    • The update in index.html to correct the model value from llama2-70b to llama3-70b-instruct is a necessary fix for accuracy in the dropdown. Good catch!
  2. Provider Updates:

    • In Llama.py, the renaming of models to include -instruct suffix aligns with the naming convention and clarifies the model's purpose. This change enhances readability and consistency.
    • The modifications in PerplexityLabs.py seem to streamline the list of models and remove duplicates. It's important to ensure that all referenced models are still accessible and functional after these changes.
  3. Code Consistency:

    • The diff shows a consistent approach to naming and structuring, which is beneficial for maintaining the code.
  4. Error Handling:

    • The change in the exception message to include the message variable in PerplexityLabs.py is a minor but helpful improvement for debugging.

Overall, the pull request introduces small but meaningful improvements that contribute to the project's health. I recommend verifying the availability of all models after the changes to ensure no functionality is lost.


Once again, thank you for your work on this. It's always appreciated when individuals take the time to refine and enhance our projects.

g4f/Provider/Llama.py Show resolved Hide resolved
g4f/Provider/Llama.py Show resolved Hide resolved
g4f/Provider/PerplexityLabs.py Show resolved Hide resolved
g4f/Provider/PerplexityLabs.py Show resolved Hide resolved
g4f/gui/client/index.html Show resolved Hide resolved
g4f/gui/client/index.html Show resolved Hide resolved
@hlohaus hlohaus merged commit 81cf5d7 into xtekky:main Apr 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants