Comments (1)
This has been fixed in version 0.1.3.
import poe
import logging
poe.logger.setLevel(logging.INFO)
client = poe.Client("TOKEN")
message = "I hope you can generate an article about the Pacific Ocean, about 300 words"
for chunk in client.send_message("capybara", message):
print(chunk["text_new"], end="", flush=True)
print()
message = "I hope you can generate an article about the Atlantic Ocean"
for chunk in client.send_message("capybara", message):
print(chunk["text_new"], end="", flush=True)
print()
INFO:root:Downloading next_data...
INFO:root:Downloading channel data...
INFO:root:Downloading https://poe.com/_next/data/KyiVpGk8gbbnwLUpZdqrb/sage.json
INFO:root:Downloading https://poe.com/_next/data/KyiVpGk8gbbnwLUpZdqrb/gpt-4.json
INFO:root:Downloading https://poe.com/_next/data/KyiVpGk8gbbnwLUpZdqrb/claude+.json
INFO:root:Downloading https://poe.com/_next/data/KyiVpGk8gbbnwLUpZdqrb/claude.json
INFO:root:Downloading https://poe.com/_next/data/KyiVpGk8gbbnwLUpZdqrb/chatgpt.json
INFO:root:Downloading https://poe.com/_next/data/KyiVpGk8gbbnwLUpZdqrb/dragonfly.json
INFO:root:Sending message to capybara: I hope you can generate an article about the Pacific Ocean, about 300 words
The Pacific Ocean is the largest and deepest ocean on Earth, covering approximately one-third of the planet's surface. It is bounded by the continents of North and South America to the east, Asia and Australia to the west, and the Southern Ocean to the south. The ocean's name comes from the Latin word "pacificus," which means peaceful, as it was named by the Portuguese explorer Ferdinand Magellan, who crossed it in 1520 and found it to be calm.
The Pacific Ocean is home to a vast array of marine life, including whales, dolphins, sharks, and sea turtles, as well as numerous species of fish and invertebrates. It also contains many important ecosystems, including coral reefs, seagrass meadows, and deep-sea hydrothermal vents.
One of the most famous features of the Pacific Ocean is the Great Barrier Reef, a massive coral reef system off the coast of Australia that is home to thousands of species of marine life. The Pacific also contains many other important ecosystems, including kelp forests, seagrass meadows, and deep-sea hydrothermal vents.
The ocean's vast size and depth make it a vital part of the Earth's climate system. The Pacific's currents and temperatures influence weather patterns around the globe, and it plays a key role in regulating the planet's temperature and carbon cycle. The ocean is also a major source of food and resources for human populations around the world, with fisheries in the Pacific providing billions of dollars in revenue each year.
Despite its importance, the Pacific Ocean is facing a range of challenges. Overfishing, pollution, and climate change are all affecting the health of the ocean's ecosystems. Rising sea temperatures and ocean acidification are causing harm to coral reefs and other marine life, while plastic pollution and other forms of waste are threatening the ocean and its inhabitants.
Governments, NGOs, and individuals are working to protect and conserve the Pacific Ocean. Efforts are underway to reduce pollution, manage fisheries sustainably, and promote the conservation of marine ecosystems. By working together, we can ensure that the Pacific Ocean remains a vital part of our planet's natural heritage for generations to come.
INFO:root:Sending message to capybara: I hope you can generate an article about the Atlantic Ocean
The Atlantic Ocean is the second largest ocean on Earth, covering approximately 20% of the planet's surface. It is bounded by the continents of North and South America to the west, and Europe and Africa to the east. The ocean's name comes from the Greek mythological figure Atlas, who was said to hold up the sky and the earth.
The Atlantic Ocean is home to a diverse range of marine life, including whales, dolphins, sharks, and sea turtles, as well as numerous species of fish and invertebrates. It also contains many important ecosystems, including coral reefs, seagrass meadows, and deep-sea hydrothermal vents.
One of the most famous features of the Atlantic Ocean is the Gulf Stream, a powerful current that flows from the Gulf of Mexico to the North Atlantic. The Gulf Stream plays a vital role in regulating the Earth's climate, as it helps to distribute heat around the planet and influences weather patterns in Europe and North America.
The Atlantic Ocean has a rich history, and has played a key role in world exploration, trade, and conflict. The ocean was the site of numerous naval battles during World War II, and was also a major route for the transatlantic slave trade. Today, the Atlantic remains an important source of trade and transportation, with thousands of ships crossing the ocean every day.
However, like all oceans, the Atlantic is facing a range of challenges. Overfishing, pollution, and climate change are all affecting the health of the ocean's ecosystems. Rising sea temperatures and ocean acidification are causing harm to coral reefs and other marine life, while plastic pollution and other forms of waste are threatening the health of the ocean and its inhabitants.
Despite these challenges, there are many efforts underway to protect and conserve the Atlantic Ocean. Governments, NGOs, and individuals are working to reduce pollution, manage fisheries sustainably, and promote the conservation of marine ecosystems. By working together, we can ensure that the Atlantic Ocean remains a vital part of our planet's natural heritage for generations to come.
from poe-api.
Related Issues (20)
- SendMessageMutation returned an error: Server Error | Retrying (1/20) | Response: {'data': None, 'errors': [{'message': 'Server Error'}], 'extensions': {'is_final': True, 'enable_i18n': True}} HOT 1
- chunk['text'] gets incomplete anwser HOT 3
- 使用接口调用GPT4,回复的是GPT3.5的结果,而且没有扣除GPT4的次数 HOT 3
- Server returned a status code of 403 while downloading https://poe. com HOT 59
- ReferenceError: 'document' is not defined HOT 1
- it raises runtime error again (RuntimeError(f"Failed to download {url} too many times.")) HOT 1
- Add a feature to upload documents HOT 1
- No module named 'poe' HOT 2
- Failed building wheel for quickjs HOT 9
- RuntimeError: Failed to download https://poe.com too many times. HOT 3
- hard to get chatId HOT 4
- Client cannot be created due to 'data' KeyError HOT 4
- Can not create poe client instance HOT 1
- Seems Poe is blocking to access poe token HOT 1
- Server returned a status code of 400 while downloading https://poe.com/api/gql_POST HOT 8
- Maintainers Needed HOT 12
- Server returned a status code of 403 while downloading bot list HOT 2
- 最新AI集成软件-AI超元域,支持多款AI同时回答
- AI超元域,免费开源多AI协作应用
- Can't find p-b cookie value HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poe-api.