directory
Version:
v1.2.8
Opens a new window with list of versions in this module.
Published: Mar 25, 2025
License: MIT
Opens a new window with license information.
README
¶
Examples
This directory contains various examples demonstrating different capabilities of the deepseek-go library.
| # |
Example Name |
Description |
| 0 |
Using External Providers |
Supports external providers through baseURL extension. Missing model constants can be reported via issues or pull requests. |
| 1 |
Basic Chat Example |
Demonstrates basic chat functionality. |
| 2 |
Chat with Streaming |
Implements streaming chat responses, including ReasoningContent with R1. |
| 3 |
Fill-in-Middle (FIM) |
Example of fill-in-middle completion with streaming support. |
| 4 |
JSON Mode |
Demonstrates JSON mode for structured responses. This is a client-specific feature. |
| 5 |
Multi-Chat |
Example of handling multiple concurrent chat sessions. |
| 6 |
Bad Multi-Chat |
Demonstrates incorrect handling of multiple chats (for educational purposes). |
| 7 |
Balance Example |
Shows balance-related functionality. |
| 8 |
Client with Options |
Demonstrates creating a client with custom options. |
| 9 |
Prefix Completion |
Example of prefix-based completion. |
| 10 |
Token Usage Estimation |
Demonstrates how to estimate and track token usage for requests (based on Deepseek’s documentation). |
| 11 |
List Supported Models |
Shows how to list all supported models through the Deepseek API. |
Directories
¶
Click to show internal directories.
Click to hide internal directories.