-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6272990
commit 9cc16c3
Showing
4 changed files
with
199 additions
and
4 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
typescript/fiddle-frontend/public/_examples/intro/chat-roles/baml_src/clients.baml
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
typescript/fiddle-frontend/public/_examples/intro/chat-roles/baml_src/clients.baml
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,50 @@ | ||
// These are LLM clients you can use in your functions. We currently support Anthropic, OpenAI / Azure, Gemini, and Ollama as providers but are expanding to many more. | ||
|
||
// We also support any other provider that follows the OpenAI API specification, such as HuggingFace. | ||
|
||
// For this playground, we have setup a few clients for you to use already with some free credits. | ||
|
||
client<llm> GPT4 { | ||
// Use one of the following: https://docs.boundaryml.com/v3/syntax/client/client#providers | ||
provider openai | ||
// You can pass in any parameters from the OpenAI Python documentation into the options block. | ||
options { | ||
model gpt-4 | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> GPT4Turbo { | ||
provider openai | ||
options { | ||
model gpt-4-turbo | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> GPT35 { | ||
provider openai | ||
options { | ||
model gpt-3.5-turbo | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> Claude { | ||
provider anthropic | ||
options { | ||
model claude-3-haiku-20240307 | ||
api_key env.ANTHROPIC_API_KEY | ||
max_tokens 1000 | ||
|
||
} | ||
} | ||
|
||
client<llm> Gemini { | ||
provider google-ai | ||
options{ | ||
model "gemini-1.5-pro-001" | ||
api_key env.GOOGLE_API_KEY | ||
} | ||
} | ||
|
1 change: 0 additions & 1 deletion
1
typescript/fiddle-frontend/public/_examples/intro/classify-message/baml_src/clients.baml
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
typescript/fiddle-frontend/public/_examples/intro/classify-message/baml_src/clients.baml
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,50 @@ | ||
// These are LLM clients you can use in your functions. We currently support Anthropic, OpenAI / Azure, Gemini, and Ollama as providers but are expanding to many more. | ||
|
||
// We also support any other provider that follows the OpenAI API specification, such as HuggingFace. | ||
|
||
// For this playground, we have setup a few clients for you to use already with some free credits. | ||
|
||
client<llm> GPT4 { | ||
// Use one of the following: https://docs.boundaryml.com/v3/syntax/client/client#providers | ||
provider openai | ||
// You can pass in any parameters from the OpenAI Python documentation into the options block. | ||
options { | ||
model gpt-4 | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> GPT4Turbo { | ||
provider openai | ||
options { | ||
model gpt-4-turbo | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> GPT35 { | ||
provider openai | ||
options { | ||
model gpt-3.5-turbo | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> Claude { | ||
provider anthropic | ||
options { | ||
model claude-3-haiku-20240307 | ||
api_key env.ANTHROPIC_API_KEY | ||
max_tokens 1000 | ||
|
||
} | ||
} | ||
|
||
client<llm> Gemini { | ||
provider google-ai | ||
options{ | ||
model "gemini-1.5-pro-001" | ||
api_key env.GOOGLE_API_KEY | ||
} | ||
} | ||
|
1 change: 0 additions & 1 deletion
1
typescript/fiddle-frontend/public/_examples/intro/extract-resume/baml_src/clients.baml
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
typescript/fiddle-frontend/public/_examples/intro/extract-resume/baml_src/clients.baml
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,50 @@ | ||
// These are LLM clients you can use in your functions. We currently support Anthropic, OpenAI / Azure, Gemini, and Ollama as providers but are expanding to many more. | ||
|
||
// We also support any other provider that follows the OpenAI API specification, such as HuggingFace. | ||
|
||
// For this playground, we have setup a few clients for you to use already with some free credits. | ||
|
||
client<llm> GPT4 { | ||
// Use one of the following: https://docs.boundaryml.com/v3/syntax/client/client#providers | ||
provider openai | ||
// You can pass in any parameters from the OpenAI Python documentation into the options block. | ||
options { | ||
model gpt-4 | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> GPT4Turbo { | ||
provider openai | ||
options { | ||
model gpt-4-turbo | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> GPT35 { | ||
provider openai | ||
options { | ||
model gpt-3.5-turbo | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> Claude { | ||
provider anthropic | ||
options { | ||
model claude-3-haiku-20240307 | ||
api_key env.ANTHROPIC_API_KEY | ||
max_tokens 1000 | ||
|
||
} | ||
} | ||
|
||
client<llm> Gemini { | ||
provider google-ai | ||
options{ | ||
model "gemini-1.5-pro-001" | ||
api_key env.GOOGLE_API_KEY | ||
} | ||
} | ||
|
1 change: 0 additions & 1 deletion
1
typescript/fiddle-frontend/public/_examples/intro/images/baml_src/clients.baml
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
typescript/fiddle-frontend/public/_examples/intro/images/baml_src/clients.baml
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,49 @@ | ||
// These are LLM clients you can use in your functions. We currently support Anthropic, OpenAI / Azure, Gemini, and Ollama as providers but are expanding to many more. | ||
|
||
// We also support any other provider that follows the OpenAI API specification, such as HuggingFace. | ||
|
||
// For this playground, we have setup a few clients for you to use already with some free credits. | ||
|
||
client<llm> GPT4 { | ||
// Use one of the following: https://docs.boundaryml.com/v3/syntax/client/client#providers | ||
provider openai | ||
// You can pass in any parameters from the OpenAI Python documentation into the options block. | ||
options { | ||
model gpt-4 | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> GPT4Turbo { | ||
provider openai | ||
options { | ||
model gpt-4-turbo | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> GPT35 { | ||
provider openai | ||
options { | ||
model gpt-3.5-turbo | ||
api_key env.OPENAI_API_KEY | ||
} | ||
} | ||
|
||
client<llm> Claude { | ||
provider anthropic | ||
options { | ||
model claude-3-haiku-20240307 | ||
api_key env.ANTHROPIC_API_KEY | ||
max_tokens 1000 | ||
|
||
} | ||
} | ||
|
||
client<llm> Gemini { | ||
provider google-ai | ||
options{ | ||
model "gemini-1.5-pro-001" | ||
api_key env.GOOGLE_API_KEY | ||
} | ||
} |