examples/

directory
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2025 License: MIT

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL