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

Fix check version #1385

Merged
merged 2 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README-DE.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ docker-compose down
import g4f

g4f.debug.logging = True # Aktiviere das Protokollieren
g4f.check_version = False # Deaktiviere die automatische Versionsüberprüfung
print(g4f.version) # Überprüfe die Version
print(g4f.Provider.Ails.params) # Unterstützte Argumente
g4f.debug.check_version = False # Deaktiviere die automatische Versionsüberprüfung
print(g4f.debug.get_version()) # Überprüfe die Version
print(g4f.Provider.Bing.params) # Unterstützte Argumente

# Automatische Auswahl des Anbieters

Expand Down
2 changes: 1 addition & 1 deletion g4f/api/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
import g4f.api

if __name__ == "__main__":
print(f'Starting server... [g4f v-{g4f.version}]')
print(f'Starting server... [g4f v-{g4f.debug.get_version()}]')
g4f.api.Api(engine = g4f, debug = True).run(ip = "0.0.0.0:10000")
Loading