Coder Social home page Coder Social logo

Comments (1)

ading2210 avatar ading2210 commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.