summarylogtreecommitdiffstats
path: root/config.toml
blob: 50d090dc5d5a065ab6d305f5e6c6fbfbe923804a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Installed as:
#   ${XDG_CONFIG_HOME:-$HOME/.config}/tabbyml/config.toml
#
# The packaged systemd user service sets TABBY_ROOT to %E/tabbyml. For user
# services, %E resolves to XDG_CONFIG_HOME when set, otherwise $HOME/.config.
# Tabby reads config.toml from TABBY_ROOT.
#
# Documentation:
#   https://tabby.tabbyml.com/docs/administration/config-toml/
#   https://tabby.tabbyml.com/docs/administration/model/
#   https://tabby.tabbyml.com/docs/administration/context/

[model.completion.local]
model_id = "StarCoder-1B"

[model.chat.local]
model_id = "Qwen2-1.5B-Instruct"

[model.embedding.local]
model_id = "Nomic-Embed-Text"

# Remote model connector examples. Enable only the sections you need.
#
# [model.chat.http]
# kind = "openai/chat"
# model_name = "gpt-4o"
# supported_models = ["gpt-4o", "gpt-4o-mini"]
# api_endpoint = "https://api.openai.com/v1"
# api_key = "your-api-key"
#
# [model.completion.http]
# kind = "llama.cpp/completion"
# model_name = "your-fim-model"
# api_endpoint = "http://localhost:8081"
# api_key = "secret-api-key"
# prompt_template = "<|fim_prefix|>{prefix}<|fim_suffix|>{suffix}<|fim_middle|>"
#
# [model.embedding.http]
# kind = "openai/embedding"
# model_name = "text-embedding-3-small"
# api_endpoint = "https://api.openai.com/v1"
# api_key = "your-api-key"

# Repository contexts are the OSS-compatible way to configure source-code context providers.
#
# [[repositories]]
# name = "tabby"
# git_url = "https://github.com/TabbyML/tabby.git"
#
# [[repositories]]
# name = "local-project"
# git_url = "file:///home/your-user/projects/local-project"

# Developer documentation contexts use llms.txt when available, otherwise Tabby
# uses Katana as a crawling backend. The AUR package exposes Katana as an optional dependency.

# [answer]
# system_prompt = """
# You are Tabby, an AI coding assistant for software developers.
# """

# [[additional_languages]]
# languages = ["swift"]
# exts = ["swift"]
# line_comment = "//"
# top_level_keywords = ["import", "let", "var", "func", "return"]