update readme and gemini

This commit is contained in:
Kujtim Hoxha 2025-06-04 15:08:50 +02:00
parent 12a98d6940
commit 0c38c0f698
2 changed files with 19 additions and 14 deletions

View file

@ -10,6 +10,11 @@ A powerful terminal-based AI assistant for developers, providing intelligent cod
OpenCode is a Go-based CLI application that brings AI assistance to your terminal. It provides a TUI (Terminal User Interface) for interacting with various AI models to help with coding tasks, debugging, and more. OpenCode is a Go-based CLI application that brings AI assistance to your terminal. It provides a TUI (Terminal User Interface) for interacting with various AI models to help with coding tasks, debugging, and more.
<p>For a quick video overview, check out
<a href="https://www.youtube.com/watch?v=P8luPmEa1QI"><img width="25" src="https://upload.wikimedia.org/wikipedia/commons/0/09/YouTube_full-color_icon_%282017%29.svg"> OpenCode + Gemini 2.5 Pro: BYE Claude Code! I'm SWITCHING To the FASTEST AI Coder!</a></p>
<a href="https://www.youtube.com/watch?v=P8luPmEa1QI"><img width="550" src="https://i3.ytimg.com/vi/P8luPmEa1QI/maxresdefault.jpg"></a><p>
## Features ## Features
- **Interactive TUI**: Built with [Bubble Tea](https://github.com/charmbracelet/bubbletea) for a smooth terminal experience - **Interactive TUI**: Built with [Bubble Tea](https://github.com/charmbracelet/bubbletea) for a smooth terminal experience
@ -273,23 +278,23 @@ By default, a spinner animation is displayed while the model is processing your
OpenCode supports the following output formats in non-interactive mode: OpenCode supports the following output formats in non-interactive mode:
| Format | Description | | Format | Description |
| ------ | -------------------------------------- | | ------ | ------------------------------- |
| `text` | Plain text output (default) | | `text` | Plain text output (default) |
| `json` | Output wrapped in a JSON object | | `json` | Output wrapped in a JSON object |
The output format is implemented as a strongly-typed `OutputFormat` in the codebase, ensuring type safety and validation when processing outputs. The output format is implemented as a strongly-typed `OutputFormat` in the codebase, ensuring type safety and validation when processing outputs.
## Command-line Flags ## Command-line Flags
| Flag | Short | Description | | Flag | Short | Description |
| ----------------- | ----- | ------------------------------------------------------ | | ----------------- | ----- | --------------------------------------------------- |
| `--help` | `-h` | Display help information | | `--help` | `-h` | Display help information |
| `--debug` | `-d` | Enable debug mode | | `--debug` | `-d` | Enable debug mode |
| `--cwd` | `-c` | Set current working directory | | `--cwd` | `-c` | Set current working directory |
| `--prompt` | `-p` | Run a single prompt in non-interactive mode | | `--prompt` | `-p` | Run a single prompt in non-interactive mode |
| `--output-format` | `-f` | Output format for non-interactive mode (text, json) | | `--output-format` | `-f` | Output format for non-interactive mode (text, json) |
| `--quiet` | `-q` | Hide spinner in non-interactive mode | | `--quiet` | `-q` | Hide spinner in non-interactive mode |
## Keyboard Shortcuts ## Keyboard Shortcuts

View file

@ -28,7 +28,7 @@ var GeminiModels = map[ModelID]Model{
ID: Gemini25, ID: Gemini25,
Name: "Gemini 2.5 Pro", Name: "Gemini 2.5 Pro",
Provider: ProviderGemini, Provider: ProviderGemini,
APIModel: "gemini-2.5-pro-preview-03-25", APIModel: "gemini-2.5-pro-preview-05-06",
CostPer1MIn: 1.25, CostPer1MIn: 1.25,
CostPer1MInCached: 0, CostPer1MInCached: 0,
CostPer1MOutCached: 0, CostPer1MOutCached: 0,