Skip to content

Commit e863ffe

Browse files
update docs links (#180)
1 parent 30b70ee commit e863ffe

File tree

102 files changed

+272
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+272
-232
lines changed

ai-chat/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This application is your bridge between popular chat platforms like Discord and
1515

1616
### Prerequisites
1717

18-
* **Encore:** You'll need Encore to get started. Follow the installation instructions at [https://encore.dev/docs/install](https://encore.dev/docs/install).
18+
* **Encore:** You'll need Encore to get started. Follow the installation instructions at [https://encore.dev/docs/install](https://encore.dev/docs/go/install).
1919
* **OpenAI API Key:** To use OpenAI's models, grab an API key from [https://platform.openai.com/api-keys](https://platform.openai.com/api-keys).
2020

2121
### Run Locally

ai-chat/chat/provider/discord/service.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ import (
2727
"encore.dev/storage/sqldb"
2828
)
2929

30-
// This uses Encore's declarative database , learn more: https://encore.dev/docs/primitives/databases
30+
// This uses Encore's declarative database , learn more: https://encore.dev/docs/go/primitives/databases
3131
var discorddb = sqldb.NewDatabase("discord", sqldb.DatabaseConfig{
3232
Migrations: "./db/migrations",
3333
})
3434

35-
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/primitives/secrets
35+
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/go/primitives/secrets
3636
var secrets struct {
3737
DiscordToken string
3838
}
3939

40-
// This declares a Encore Service, learn more: https://encore.dev/docs/primitives/services-and-apis/service-structs
40+
// This declares a Encore Service, learn more: https://encore.dev/docs/go/primitives/service-structs
4141
//
4242
//encore:service
4343
type Service struct {

ai-chat/chat/provider/pubsub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
// InboxTopic is the pubsub topic for messages from chat providers
88
//
9-
// This uses Encore's pubsub package, learn more: https://encore.dev/docs/primitives/pubsub
9+
// This uses Encore's pubsub package, learn more: https://encore.dev/docs/go/primitives/pubsub
1010
var InboxTopic = pubsub.NewTopic[*Message]("inbox", pubsub.TopicConfig{
1111
DeliveryGuarantee: pubsub.AtLeastOnce,
1212
})

ai-chat/chat/provider/slack/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ const (
2626
BotMessageEventType = "bot_message"
2727
)
2828

29-
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/primitives/secrets
29+
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/go/primitives/secrets
3030
var secrets struct {
3131
SlackToken string
3232
}
3333

34-
// This declares a Encore Service, learn more: https://encore.dev/docs/primitives/services-and-apis/service-structs
34+
// This declares a Encore Service, learn more: https://encore.dev/docs/go/primitives/service-structs
3535
//
3636
//encore:service
3737
type Service struct {

ai-chat/llm/provider/gemini/gemini.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ type Config struct {
2626
TopK config.Int32
2727
}
2828

29-
// This uses Encore Configuration, learn more: https://encore.dev/docs/develop/config
29+
// This uses Encore Configuration, learn more: https://encore.dev/docs/go/develop/config
3030
var cfg = config.Load[*Config]()
3131

32-
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/primitives/secrets
32+
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/go/primitives/secrets
3333
var secrets struct {
3434
GeminiJSONCredentials string
3535
}
3636

37-
// This declares a Encore Service, learn more: https://encore.dev/docs/primitives/services-and-apis/service-structs
37+
// This declares a Encore Service, learn more: https://encore.dev/docs/go/primitives/service-structs
3838
//
3939
//encore:service
4040
type Service struct {

ai-chat/llm/provider/openai/openai.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
var TopicRef = pubsub.TopicRef[pubsub.Publisher[*provider.BotResponse]](provider.LLMMessageTopic)
2222

23-
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/primitives/secrets
23+
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/go/primitives/secrets
2424
var secrets struct {
2525
OpenAIKey string
2626
}
@@ -33,10 +33,10 @@ type Config struct {
3333
TopP config.Float32
3434
}
3535

36-
// This uses Encore Configuration, learn more: https://encore.dev/docs/develop/config
36+
// This uses Encore Configuration, learn more: https://encore.dev/docs/go/develop/config
3737
var cfg = config.Load[*Config]()
3838

39-
// This declares a Encore Service, learn more: https://encore.dev/docs/primitives/services-and-apis/service-structs
39+
// This declares a Encore Service, learn more: https://encore.dev/docs/go/primitives/service-structs
4040
//
4141
//encore:service
4242
type Service struct {

ai-chat/llm/provider/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (req *ChatRequest) UsersByID() map[uuid.UUID]*chatdb.User {
129129

130130
// LLMMessageTopic is a topic for messages generated by the LLM providers.
131131
//
132-
// This uses Encore's pubsub package, learn more: https://encore.dev/docs/primitives/pubsub
132+
// This uses Encore's pubsub package, learn more: https://encore.dev/docs/go/primitives/pubsub
133133
var LLMMessageTopic = pubsub.NewTopic[*BotResponse]("llm-messages", pubsub.TopicConfig{
134134
DeliveryGuarantee: pubsub.AtLeastOnce,
135135
})

ai-chat/llm/service/pubsub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import (
1212
// TaskTopic is a topic for tasks generated by the chat service.
1313
// We use a topic to allow for asynchronous processing of tasks (the LLMs can be slow).
1414
//
15-
// This uses Encore's pubsub package, learn more: https://encore.dev/docs/primitives/pubsub
15+
// This uses Encore's pubsub package, learn more: https://encore.dev/docs/go/primitives/pubsub
1616
var TaskTopic = pubsub.NewTopic[*provider.ChatRequest]("llm-task", pubsub.TopicConfig{
1717
DeliveryGuarantee: pubsub.AtLeastOnce,
1818
})
1919

2020
// chat-sub is a subscription to the chat task topic. It handles all incoming tasks from the chat service.
2121
//
22-
// This uses Encore's pubsub package, learn more: https://encore.dev/docs/primitives/pubsub
22+
// This uses Encore's pubsub package, learn more: https://encore.dev/docs/go/primitives/pubsub
2323
var _ = pubsub.NewSubscription(
2424
TaskTopic, "chat-sub",
2525
pubsub.SubscriptionConfig[*provider.ChatRequest]{

ai-chat/llm/service/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (c channelTasks) get(channelID uuid.UUID, provider string) (string, bool) {
4949
return taskID, ok
5050
}
5151

52-
// This declares a Encore Service, learn more: https://encore.dev/docs/primitives/services-and-apis/service-structs
52+
// This declares a Encore Service, learn more: https://encore.dev/docs/go/primitives/service-structs
5353
//
5454
//encore:service
5555
type Service struct {

ai-chat/proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"encore.dev/rlog"
1414
)
1515

16-
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/primitives/secrets
16+
// This uses Encore's built-in secrets manager, learn more: https://encore.dev/docs/go/primitives/secrets
1717
var secrets struct {
1818
NGrokToken string
1919
NGrokDomain string

0 commit comments

Comments
 (0)