Skip to content

feat(ENG-46): add monitor.meta_ai() for Meta AI (0.7.0) - #15

Open
rbatista191 wants to merge 1 commit into
mainfrom
feature/eng-46-new-endpoint-meta-ai
Open

rbatista191 wants to merge 1 commit into
mainfrom
feature/eng-46-new-endpoint-meta-ai

Conversation

@rbatista191

Copy link
Copy Markdown
Contributor

Warning

Do not merge before cloro-dev/backend#600 deploys. A merge that changes _version.py publishes 0.7.0 to PyPI, and monitor.meta_ai() gets a 404 until the endpoint is live.

Adds Meta AI (POST /v1/monitor/meta-ai, ENG-46). The endpoint is in cloro-dev/backend#600 and cloro-dev/browsers#2258.

Changes

  • New monitor.meta_ai(prompt, country, *, state=None, include=None). This is the same shape as bing_aimode(). include accepts markdown and html.
  • The result has text, sources and citationPills.
  • META_AI in the task_type docstring of async_tasks.create().
  • README: engine list, a Meta AI section (10,000-character prompt, 4 credits, +2 for state, +2 for sync, CN and RU not available, "best X" prompts that get no answer), task types, countries(model="meta_ai"). CHANGELOG 0.7.0. Package description.
  • Version 0.6.1 to 0.7.0. CI publishes on merge.

Checks

  • ruff check . passes.
  • 25/25 tests pass (4 new: request and response, unset state dropped, META_AI task, countries(model="meta_ai")).
  • python -m build builds the sdist and the wheel.

Checks not run

  • No live API test. The endpoint is not live, and the tests use httpx.MockTransport.

Merge order

  1. cloro-dev/backend#600 deploys.
  2. Merge this PR with cloro-dev/cloro-node.

https://claude.ai/code/session_01Vi9vyc4nPaECMgzccWiEMb

Add Meta AI (POST /v1/monitor/meta-ai). The endpoint is in
cloro-dev/backend#600 and cloro-dev/browsers#2258. It is not live yet.

- monitor.meta_ai(): prompt, country, an optional US state, and
  include (markdown, html).
- The META_AI task type for client.async_tasks.
- README, CHANGELOG and package description.
- Version 0.6.1 to 0.7.0.

Claude-Session: https://claude.ai/code/session_01Vi9vyc4nPaECMgzccWiEMb

This branch has not been deployed

No deployments
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.

1 participant