diff --git a/README.md b/README.md index 3b1d83415..3cd392d48 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,9 @@ The [**AI Gateway**](https://portkey.wiki/gh-10) is designed for fast, reliable # Run the gateway locally (needs Node.js and npm) npx @portkey-ai/gateway ``` +> The Gateway is running on `http://localhost:8787/v1` +> +> The Gateway Console is running on `http://localhost:8787/public/` Deployment guides: @@ -103,6 +106,11 @@ client.chat.completions.create(   [More..](https://portkey.wiki/gh-26) +On the Gateway Console (`http://localhost:8787/public/`) you can see all of your local logs in one place. + + + + ### 3. Routing & Guardrails `Configs` in the LLM gateway allow you to create routing rules, add reliability and setup guardrails. ```python @@ -158,7 +166,9 @@ The enterprise deployment architecture for supported platforms is available here ### AI Engineering Hours -Join weekly community calls every Friday (8 AM PT) to kickstart your AI Gateway implementation! [Calendar Link](https://portkey.wiki/gh-35) +Join weekly community calls every Friday (8 AM PT) to kickstart your AI Gateway implementation! [Happening every Friday](https://portkey.wiki/gh-35) + + Minutes of Meetings [published here](https://portkey.wiki/gh-36). diff --git a/src/public/main.js b/src/public/main.js index 74ca24784..0b5e11077 100644 --- a/src/public/main.js +++ b/src/public/main.js @@ -178,7 +178,7 @@ function getTestRequestCodeBlock(language, vars) { }) // Example: Send a chat completion request -const response = await portkey.chat.completion.create({ +const response = await portkey.chat.completions.create({ messages: [{ role: 'user', content: 'Hello, how are you?' }], model: "${modelMap[vars.provider] || ''}"${vars.provider=="anthropic"?`, max_tokens: 40`:''} @@ -195,7 +195,7 @@ client = Portkey( ) # Example: Send a chat completion request -response = client.chat.completion.create( +response = client.chat.completions.create( messages=[{"role": "user", "content": "Hello, how are you?"}], model="${modelMap[vars.provider] || ''}" ) @@ -705,4 +705,4 @@ window.onload = function() { // spread: 70, // origin: { y: 0.6 } // }); -}; \ No newline at end of file +};