on main help sign in
update readme and gemini
0c38c0fKujtim Hoxha
README.md+18−13
@@ -10,6 +10,11 @@ A powerful terminal-based AI assistant for developers, providing intelligent cod
10
10
11OpenCode 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.
11OpenCode 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.
12
12
13+<p>For a quick video overview, check out
14+<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>
15+
16+<a href="https://www.youtube.com/watch?v=P8luPmEa1QI"><img width="550" src="https://i3.ytimg.com/vi/P8luPmEa1QI/maxresdefault.jpg"></a><p>
17+
13## Features
18## Features
14
19
15- **Interactive TUI**: Built with [Bubble Tea](https://github.com/charmbracelet/bubbletea) for a smooth terminal experience
20- **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
273
278
274OpenCode supports the following output formats in non-interactive mode:
279OpenCode supports the following output formats in non-interactive mode:
275
280
276−| Format | Description |
281+| Format | Description |
277−| ------ | -------------------------------------- |
282+| ------ | ------------------------------- |
278−| `text` | Plain text output (default) |
283+| `text` | Plain text output (default) |
279−| `json` | Output wrapped in a JSON object |
284+| `json` | Output wrapped in a JSON object |
280
285
281The output format is implemented as a strongly-typed `OutputFormat` in the codebase, ensuring type safety and validation when processing outputs.
286The output format is implemented as a strongly-typed `OutputFormat` in the codebase, ensuring type safety and validation when processing outputs.
282
287
283## Command-line Flags
288## Command-line Flags
284
289
285−| Flag | Short | Description |
290+| Flag | Short | Description |
286−| ----------------- | ----- | ------------------------------------------------------ |
291+| ----------------- | ----- | --------------------------------------------------- |
287−| `--help` | `-h` | Display help information |
292+| `--help` | `-h` | Display help information |
288−| `--debug` | `-d` | Enable debug mode |
293+| `--debug` | `-d` | Enable debug mode |
289−| `--cwd` | `-c` | Set current working directory |
294+| `--cwd` | `-c` | Set current working directory |
290−| `--prompt` | `-p` | Run a single prompt in non-interactive mode |
295+| `--prompt` | `-p` | Run a single prompt in non-interactive mode |
291−| `--output-format` | `-f` | Output format for non-interactive mode (text, json) |
296+| `--output-format` | `-f` | Output format for non-interactive mode (text, json) |
292−| `--quiet` | `-q` | Hide spinner in non-interactive mode |
297+| `--quiet` | `-q` | Hide spinner in non-interactive mode |
293
298
294## Keyboard Shortcuts
299## Keyboard Shortcuts
295
300
@@ -572,7 +577,7 @@ While the LSP client implementation supports the full LSP protocol (including co
572OpenCode can also load and use models from a self-hosted (OpenAI-like) provider.
577OpenCode can also load and use models from a self-hosted (OpenAI-like) provider.
573This is useful for developers who want to experiment with custom models.
578This is useful for developers who want to experiment with custom models.
574
579
575−### Configuring a self-hosted provider
580+### Configuring a self-hosted provider
576
581
577You can use a self-hosted model by setting the `LOCAL_ENDPOINT` environment variable.
582You can use a self-hosted model by setting the `LOCAL_ENDPOINT` environment variable.
578This will cause OpenCode to load and use the models from the specified endpoint.
583This will cause OpenCode to load and use the models from the specified endpoint.
internal/llm/models/gemini.go+1−1
@@ -28,7 +28,7 @@ var GeminiModels = map[ModelID]Model{
28 ID: Gemini25,
28 ID: Gemini25,
29 Name: "Gemini 2.5 Pro",
29 Name: "Gemini 2.5 Pro",
30 Provider: ProviderGemini,
30 Provider: ProviderGemini,
31− APIModel: "gemini-2.5-pro-preview-03-25",
31+ APIModel: "gemini-2.5-pro-preview-05-06",
32 CostPer1MIn: 1.25,
32 CostPer1MIn: 1.25,
33 CostPer1MInCached: 0,
33 CostPer1MInCached: 0,
34 CostPer1MOutCached: 0,
34 CostPer1MOutCached: 0,