Skip to content

Fix how requests are constructed from server base URL #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

mattt
Copy link
Member

@mattt mattt commented Jan 26, 2025

Fixes #26

{ "method": "tools/call", "params": { "name": "createCompletion", "arguments": { "model": "gpt-3.5-turbo-instruct", "prompt": "Write a haiku about turtles", "max_tokens": 50, "temperature": 0.7 }, "_meta": { "progressToken": 1 } } }
{
    "id": "cmpl-AtyI4wDPcJEawaQ8NVmzGxZlmOKid",
    "object": "text_completion",
    "created": 1737903160,
    "model": "gpt-3.5-turbo-instruct",
    "choices": [
        {
            "text": "  \\nSlow and steady steps\\nShell protects, wise and patient\\nAncient creatures roam",
            "index": 0,
            "logprobs": null,
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 6,
        "completion_tokens": 17,
        "total_tokens": 23
    }
}

@mattt mattt force-pushed the mattt/fix-base-url branch from 5a3c22a to 637e7e4 Compare January 26, 2025 15:06
@mattt mattt merged commit 9676728 into main Jan 26, 2025
1 check passed
@mattt mattt deleted the mattt/fix-base-url branch January 26, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problems making authenticated requests
1 participant