question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When using GPT-4 with ChatRequest, get a bunch of other stuff in the received string

See original GitHub issue

Bug Report

model = await api.ModelsEndpoint.GetModelDetailsAsync("gpt-4");

when I make a ChatRequest, the result string starts with:

{"id":"chatcmpl-6vCy4dpOyIf1kZy9OiZjsy0CtwGpS","object":"chat.completion","created":1679092564,"model":"gpt-3.5-turbo-0301","usage":{"prompt_tokens":451,"completion_tokens":335,"total_tokens":786},"choices":[{"message":{"role":"assistant","content":"

then the normal content, then ends with:

"},"delta":null,"finish_reason":"stop","index":0}],"ProcessingTime":"00:00:11.0960000","Organization":"ORGID","RequestId":"RequestID}

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
doomlasercommented, Mar 17, 2023

Thanks, I’m going to try deleting /Library/ and see if that fixes it.

0reactions
StephenHodgsoncommented, Mar 17, 2023

If you don’t feel comfortable sharing this information on GitHub you can always DM me on discord

Read more comments on GitHub >

github_iconTop Results From Across the Web

When I try the "gpt-4" model chat completion in API request ...
When I try the “gpt-4” model chat completion in API request, I get an error: That model does not exist. My API request...
Read more >
Is it me or has anyone else noticed that GPT-4 seems to ...
So I have to tell it to convert stuff to point form without losing detail so that I can get all the information...
Read more >
How to work with the GPT-35-Turbo and GPT-4 models
Users will paste in a string of text and you will respond with entities you've extracted from the text as a JSON object....
Read more >
Beginners Guide to GPT4 API & ChatGPT 3.5 Turbo API Tutorial
If you're looking to use OpenAI API this video should cover the whole ... how to get started to integrate it into projects,...
Read more >
How to Use The GPT-4 API With Function Calling - YouTube
OpenAI just released a massive update to the GPT-3.5 and GPT-4 API's! ... give back the results into another call to GPT and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found