-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v0.2.1] change default server settings (add small and large), enable…
… env variables to config appl, update cursorrules * Can configurate default small and large models, unify the interface (server name) for the developpers and users. * Enable using environmental variable to update appl configs (requires `jsonargparse`). * Update cursorrules to better use cursor to compose codes. * Update docs for setup observability platforms. * Support caching request with response_format as a pydantic model. * Add `.env.example` to help setup for new projects. * Add hint when Langfuse or Lunary is not configured.
- Loading branch information
Showing
22 changed files
with
348 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# API keys | ||
OPENAI_API_KEY=<your-openai-api-key> | ||
ANTHROPIC_API_KEY=<your-anthropic-api-key> | ||
|
||
# Observability platform | ||
## Langfuse | ||
## You can find the keys at: <your-langfuse-host>/project/<project-id>/setup (Project Dashboard -> Configure Tracing) | ||
LANGFUSE_PUBLIC_KEY=<your-langfuse-public-key> | ||
LANGFUSE_SECRET_KEY=<your-langfuse-secret-key> | ||
LANGFUSE_HOST=<your-langfuse-host> | ||
|
||
## Lunary | ||
LUNARY_PUBLIC_KEY=<your-lunary-public-key> | ||
LUNARY_API_URL=<your-lunary-api-url> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ dumps | |
docs/reference | ||
docs/docs | ||
|
||
# changelog | ||
changelogs | ||
|
||
# appl | ||
appl.yml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
servers: | ||
default_servers: | ||
default: gpt4o-t07 | ||
|
||
servers: | ||
gpt4o-t07: | ||
model: gpt-4o | ||
temperature: 0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "pdm.backend" | |
|
||
[project] | ||
name = "applang" | ||
version = "0.2.0" | ||
version = "0.2.1" | ||
description = "A Prompt Programming Language" | ||
authors = [ | ||
{ name = "Honghua Dong", email = "[email protected]" }, | ||
|
@@ -30,6 +30,7 @@ dependencies = [ | |
"rich>=13.8.1", | ||
"pillow>=11.0.0", | ||
"deprecated>=1.2.15", | ||
"jsonargparse>=4.35.0", | ||
] | ||
requires-python = ">=3.9" | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.