mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #4767] [Bug] OpenAI request gets stuck #2134
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#2134
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @suntorytimed on GitHub (Feb 28, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4767
Originally assigned to: @appflowy on GitHub.
Bug Description
I executed a command for the openAI Writer, but the execution got stuck with a spinning loading wheel. According to the logs no request is sent and openAI doesn't register a usage of the API key.
How to Reproduce
Use 0.5.0 from Flathub and execute an openAI Writer request with an OpenAPI API key and registered to a private hosted AppFlowy Cloud.
Expected Behavior
get a response from openAI
Operating System
openSUSE Tumbleweed
AppFlowy Version(s)
beginning with 0.5.0 (tested with each verison until 0.5.8)
Screenshots
Additional Context
No response
@LucasXu0 commented on GitHub (Feb 28, 2024):
Hi, @suntorytimed. Was any error message displayed?
@suntorytimed commented on GitHub (Feb 28, 2024):
@LucasXu0 I executed AppFlowy from terminal, but there are no log entries for errors or any request being sent to OpenAI. Is there any other way to get more verbose logging? The GUI gets stuck with the spinning wheel and needs to be closed and reopened to continue working on the document.
@LucasXu0 commented on GitHub (Mar 3, 2024):
@suntorytimed Got it. By the way, could you confirm if the OpenAI key is valid?
@smvueno commented on GitHub (Mar 5, 2024):
I have the same problem with latest on my mac m1 mabook air.
The latest v0.5.0 only the right click text and spellcorrect works.
The AI writing is not working.
The last version working version for me is [v0.4.3] (This version everything with AI works)
AI writing is not working on versions [v0.4.4] - [v0.5.0]
@suntorytimed commented on GitHub (Mar 5, 2024):
@LucasXu0 yes, the API key is valid and works with other requests outside of AppFlowy.
@letanphuc commented on GitHub (Mar 8, 2024):
Hi all,
I found that function _onGenerate() (file lib\plugins\document\presentation\editor_plugins\openai\widgets\auto_completion_node_widget.dart) got stuck because of following await calling:
I don't know why but it's seeming like all await calling are stuck.
@suntorytimed commented on GitHub (Apr 2, 2024):
Issue persists with 0.5.3
@theoden8 commented on GitHub (Apr 21, 2024):
And with 0.5.4
@suntorytimed commented on GitHub (May 14, 2024):
Just here to say it's still an issue with 0.5.7. Which is quite unfortunate, as I consider the AI integration as a core functionality.
@sverro2 commented on GitHub (Jun 2, 2024):
I didn't add any API key for openAI. When I try to ask AI by using '/' and selecting the option, I can ask my question, but when sending it, it just keeps spinning/loading. No option to abort. No error messages. My only option is to close the application and restart.
This is on Fedora with Flatpak installed version of AppFlowy.
@wangtsiao commented on GitHub (Jun 12, 2024):
And with 0.5.9
@wangtsiao commented on GitHub (Jun 12, 2024):
by the way, I am at a location that accessing openai should with a vpn proxy, still not clear how to set network proxy for AppFlowy.
@DevOpsMage commented on GitHub (Jun 19, 2024):
I'm also seeing this issue as well on Windows 11 running Version 0.5.9.
@kosta777 commented on GitHub (Jun 20, 2024):
Getting the same issue on Mac M3
@suntorytimed commented on GitHub (Jul 2, 2024):
This issue also appears with the new functionality for AI chats.
@suntorytimed commented on GitHub (Jul 2, 2024):
@appflowy @LucasXu0 is there anything we can provide as input for this issue? As is the AI capabilities of AppFlowy don't work since February.
@annieappflowy commented on GitHub (Jul 2, 2024):
We fixed the OpenAI Writer block in v0.6.2
Could you please give it a try?
https://github.com/AppFlowy-IO/AppFlowy/assets/12026239/378f465f-0e28-4917-b943-e108dc4d24eb
@suntorytimed commented on GitHub (Jul 2, 2024):
Will do as soon as the Flatpak for 0.6.2 got created 👍🏼
@DevOpsMage commented on GitHub (Jul 3, 2024):
I can confirm that the AI feature is now working. I'm assuming it is using the API key I provided before I updated the software. After the update I no longer have the option to set an API key to use for openai. So I'm not sure where we are pulling this information from now.
I also see there has been added support for Claude but yet again I don't see where an API key should be added for this either.
@annieappflowy commented on GitHub (Jul 3, 2024):
Hi @DevOpsMage , Thank you for confirming that the feature works again.
We're switching from requiring users to provide API keys to offering AppFlowy AI services. You can consider it as the middle layer between AppFlowy end-user features and third-party AI providers. We're currently giving away free AI quota to our users. As you can see in the interface, you can select your preferred models to power AI inside AppFlowy. It's not completely done yet, as we're working on enabling local AI models for ultimate privacy.
Let me know if you have any questions!
@suntorytimed commented on GitHub (Jul 3, 2024):
Couldn't verify the fix yet, as the Flatpak isn't released.
I am running my own AppFlowy Cloud instance and have my key added there. Updated it to the latest version just now, to make sure everything is fine on this end.
@suntorytimed commented on GitHub (Jul 4, 2024):
Looks like it works, but I will have to fix my AI setup on the server-side :)
{"code":1017,"message":"Invalid request:reqwest::Error { kind: Request, url: Url { scheme: \"http\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"ai\")), port: Some(5001), path: \"/completion/stream\", query: None, fragment: None }, source: Error { kind: Connect, source: Some(ConnectError(\"dns error\", Custom { kind: Uncategorized, error: \"failed to lookup address information: Name or service not known\" })) } }"}@suntorytimed commented on GitHub (Jul 12, 2024):
Can confirm it as fixed with my self-hosted AppFlowy Cloud now as well