{"openapi":"3.1.0","info":{"title":"AI Prompt Testing Service for ThinkOwl","description":"<CENTER><img src=\"/static/ai-prompt-testing-service.png\"></CENTER><BR>\n            This service is used for fast prototyping of prompts. It is based on the OwlNest LLM framework.\n            ","contact":{"url":"http://www.thinkowl.com/"},"license":{"name":"ThinkOwl Usage License","url":"http://www.thinkowl.com/"},"version":"v1"},"paths":{"/metrics":{"get":{"summary":"Combined Metrics","description":"Expose combined metrics from the local instrumentator and the external server.","operationId":"combined_metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/api_keys":{"get":{"summary":"Get Available Api Keys","description":"Get the available API keys.","operationId":"get_available_api_keys_v1_api_keys_get","parameters":[{"name":"password","in":"query","required":false,"schema":{"type":"string","default":"","title":"Password"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prompt_test":{"post":{"summary":"Test Prompt","description":"This endpoint relies on a complete OwlNest structure of the conversation. It is used to test a prompt.\nThere is no followup or session prompt. The user has to provide the full conversation structure.\n\nArgs:\n    - api_key: The API key for accessing the OpenAI API.\n    - body: The defined OWLNEST structure.\n    - param temperature: Defaults to 1. Temperature value is between 0 and 2. Higher values like 0.8 will make the output more random,\n    - json_result: If set to true, the result will be returned as a JSON object. Otherwise, it will be returned as a string.\nwhile lower values like 0.2 will make it more focused and deterministic.\n    - system_message: This gives a general information to the bot before the chat starts.\n\nReturns:\n    - The generated text as a string.","operationId":"test_prompt_v1_prompt_test_post","parameters":[{"name":"api_key","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ApiKeyEnum"}},{"name":"temperature","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Temperature"}},{"name":"max_tokens","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"}},{"name":"plain_json_answer","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Plain Json Answer"}},{"name":"password","in":"query","required":false,"schema":{"type":"string","default":"","title":"Password"}}],"requestBody":{"required":true,"content":{"text/plain":{"schema":{"type":"string","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/expand":{"post":{"summary":"Expand Prompt","description":"Expand a prompt.","operationId":"expand_prompt_v1_expand_post","requestBody":{"content":{"text/plain":{"schema":{"type":"string","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/openai_format":{"post":{"summary":"Openai Format","description":"Format a prompt as OpenAI format.","operationId":"openai_format_v1_openai_format_post","parameters":[{"name":"api_key","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ApiKeyEnum"}}],"requestBody":{"required":true,"content":{"text/plain":{"schema":{"type":"string","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ApiKeyEnum":{"type":"string","enum":["azure.41.mini.germany.west.central","azure.41.mini.sweden.central","azure.41.nano.germany.west.central","azure.41.nano.sweden.central","azure.5.6.luna.france","azure.5.6.luna.sweden.central","azure.6.luna.france","llama-parse","openai.41.large","openai.41.mini","openai.5.mini"],"title":"ApiKeyEnum"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}