Skip to content

Commit f1e4b13

Browse files
committed
Merge branch 'release/0.7.1'
2 parents a05d1b6 + a2ed889 commit f1e4b13

File tree

63 files changed

+457
-4577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+457
-4577
lines changed

.cursorignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
llm.yaml
1+
config.yaml

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Thumbs.db
177177
browser-use/browser_data/
178178

179179
# Config files with sensitive data (use .template files instead)
180-
config/llm.yaml
180+
config/config.yaml
181181
# Browser data - contains private cookies and session data
182182
browser/browser_data/
183183
browser_data/

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ playwright install --with-deps chromium
9191
### Configuration Setup
9292
```bash
9393
# Copy the template configuration file
94-
cp config/llm.yaml.template config/llm.yaml
94+
cp config/config.yaml.template config/config.yaml
9595

96-
# Edit config/llm.yaml to set your API key and project ID:
96+
# Edit config/config.yaml to set your API key and project ID:
9797
# Replace "YOUR_API_KEY_HERE" with your actual OpenAI API key for browser-use
9898
# Replace "YOUR_PROJECT_ID_HERE" with your actual OpenAI project ID
9999
# Daily spending limits and model settings are configurable
@@ -104,7 +104,7 @@ cp config/llm.yaml.template config/llm.yaml
104104

105105
The system includes built-in cost tracking and spending limits to prevent unexpected charges:
106106

107-
- **Daily Spending Limits**: Configurable via `config/llm.yaml` (default: $5.00/day)
107+
- **Daily Spending Limits**: Configurable via `config/config.yaml` (default: $5.00/day)
108108
- **Project-Specific Tracking**: Only tracks costs for your specific OpenAI project
109109
- **Real-Time Monitoring**: Checks spending before each browser automation run
110110
- **Automatic Prevention**: Stops execution if daily limit would be exceeded

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resolver = "2"
88

99
[package]
1010
name = "cliptions-core"
11-
version = "0.7.0"
11+
version = "0.7.1"
1212
edition = "2021"
1313
description = "Cliptions prediction market core functionality implemented in Rust with optional Python bindings"
1414
license = "MIT"

README.md

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
# Cliptions
22

3-
Predict how an AI Agent will caption upcoming frames from live video streams. Players compete for cryptocurrency rewards based on prediction accuracy.
3+
Welcome to Cliptions
4+
5+
What exactly is a "Cliption"?
6+
7+
A Cliption is a prediction contract that pays out based on how closely a player's submitted caption matches the CLIP model's interpretation of a randomly chosen, upcoming timestamp in a livestream. It's not a tradable asset, just a commitment to your best guess in an open contest.
8+
9+
Cliptions are like options contracts but instead of betting on a price or event, you're betting on AI's semantic interpretation of a future moment.
10+
11+
In other words:
12+
13+
**Cliptions = Semantic options contracts**
14+
15+
**CLIP similarity score = Strike price**
16+
17+
**Frame reveal timestamp = Expiry date**
18+
19+
**Prize pool = Liquidity pool**
20+
21+
## What is CLIP?
22+
23+
CLIP (Contrastive Language-Image Pretraining) is a neural network created by OpenAI and trained to connect visual concepts (images, videos) with textual descriptions (English words or phrases). https://github.com/openai/CLIP
24+
25+
It can look at an image or video frame and accurately predict which textual description best matches it—or vice versa.
26+
27+
In Cliptions, this capability is specifically used for scoring predictions:
28+
29+
- Players submit text predictions for upcoming video frames.
30+
- CLIP determines how closely each submitted caption matches the actual video frame's content, semantically.
31+
- Predictions ranked closest by CLIP's embeddings win payouts.
32+
33+
This is how Cliptions leverages CLIP's unique strength in semantic interpretation—creating a novel betting product around predicting the AI's understanding of visual moments.
434

535
### Index
636
- [Gameplay](#gameplay)
@@ -412,14 +442,3 @@ Groups:
412442
[Player3] - Gets points for 3rd
413443
[Player4, Player5] - Split points for 4th/5th
414444
```
415-
416-
## Contributing
417-
418-
We welcome contributions! For detailed setup instructions, development guidelines, and advanced configuration options, please see [CONTRIBUTING.md](CONTRIBUTING.md).
419-
420-
### Quick Start
421-
1. Clone the repository
422-
2. Install dependencies: `pip install -r requirements.txt`
423-
3. Build CLI tools: `cargo build --release --no-default-features`
424-
4. Run tests: `python -m unittest discover tests`
425-
5. Create a pull request

REBRAND_COMPLETION_SUMMARY.md

Lines changed: 0 additions & 171 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
- **BaseTwitterTask inheritance** - for proper cookie and cost management
5353
- **Saved Twitter cookies** - in `browser/browser_data/twitter_cookies.json`
5454
- **Environment variables**: `TWITTER_NAME`, `TWITTER_PASSWORD`, `OPENAI_API_KEY`
55-
- **Config file**: `config/llm.yaml` for cost limits and model settings
55+
- **Config file**: `config/config.yaml` for cost limits and model settings
5656

5757
---
5858

@@ -281,7 +281,7 @@ class YourTwitterTask(BaseTwitterTask):
281281
### **Environment Setup Checklist**
282282
- [ ] `TWITTER_NAME` and `TWITTER_PASSWORD` environment variables set
283283
- [ ] `OPENAI_API_KEY` configured for browser-use
284-
- [ ] `config/llm.yaml` exists with spending limits
284+
- [ ] `config/config.yaml` exists with spending limits
285285
- [ ] `browser/browser_data/twitter_cookies.json` exists (saved from previous login)
286286
- [ ] Virtual environment activated with all dependencies
287287

browser/core/base_task.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, config: Optional[Dict[str, Any]] = None, config_file_path: Op
4343
4444
Args:
4545
config: Configuration dictionary (optional)
46-
config_file_path: Path to configuration file (optional, defaults to config/llm.yaml)
46+
config_file_path: Path to configuration file (optional, defaults to config/config.yaml)
4747
"""
4848
# Load configuration
4949
if config is None:
@@ -75,7 +75,7 @@ def __init__(self, config: Optional[Dict[str, Any]] = None, config_file_path: Op
7575

7676
def load_llm_config(self, config_file_path: Optional[str] = None) -> Dict[str, Any]:
7777
"""
78-
Load LLM configuration from config/llm.yaml with environment variable substitution.
78+
Load LLM configuration from config/config.yaml with environment variable substitution.
7979
8080
Args:
8181
config_file_path: Optional path to config file
@@ -84,9 +84,9 @@ def load_llm_config(self, config_file_path: Optional[str] = None) -> Dict[str, A
8484
Configuration dictionary
8585
"""
8686
if config_file_path is None:
87-
# Default to config/llm.yaml in project root
87+
# Default to config/config.yaml in project root
8888
script_dir = pathlib.Path(__file__).parent.parent.parent # Go up from browser-use/core/ to project root
89-
config_file_path = script_dir / "config" / "llm.yaml"
89+
config_file_path = script_dir / "config" / "config.yaml"
9090
else:
9191
config_file_path = pathlib.Path(config_file_path)
9292

0 commit comments

Comments
 (0)