Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

tempCustomModule.ts 259 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  1. class CustomApiProvider {
  2. id() {
  3. return 'custom-api-provider';
  4. }
  5. async callApi(prompt: string) {
  6. return {
  7. output: 'Custom output',
  8. tokenUsage: { total: 10, prompt: 5, completion: 5 },
  9. };
  10. }
  11. }
  12. export default CustomApiProvider;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...