1
OpenAI documentation not working
Problem reported by Neil S. - 8/15/2024 at 1:47 AM
Resolved
When I ask GhostDoc Pro to generate a comment via OpenAI, it's just blank (and even removes any existing comment too.
Looking at the log, I can see the response from OpenAI, so that bit is working, but it's not being transferred to the code being documented.

This is the log:
Log Message (15/08/2024 09:35:06) : OpenAI Request: {"model":"gpt-3.5-turbo","messages":[{"role":"user","content":"Write some documentation.\r\npublic sealed class GetConfigurationsRequest\r\n    ","name":"submain"}],"temperature":0,"top_p":0,"max_tokens":1000,"presence_penalty":0,"frequency_penalty":0,"stream":null,"stop":null}
Log Message (15/08/2024 09:35:10) : OpenAI Response: {
  "id": "[REDACTED]",
  "object": "chat.completion",
  "created": 1723710906,
  "model": "gpt-3.5-turbo-0125",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "[REDACTED]",
        "refusal": null
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 23,
    "completion_tokens": 214,
    "total_tokens": 237
  },
  "system_fingerprint": null
}

Log Message (15/08/2024 09:35:10) : DocumentThisCommandImplementation->Run finished.
Log Message (15/08/2024 09:35:12) : DocumentThisCommandImplementation->Run...
Log Message (15/08/2024 09:35:12) : Information: Registration code...
Log Message (15/08/2024 09:35:13) : Information: mk: [REDACTED];True
Log Message (15/08/2024 09:35:13) : LoadMscorlibReferences: start...
Log Message (15/08/2024 09:35:13) : User defined TEMP folder C:\Users\[REDACTED]\AppData\Local\Temp\
Log Message (15/08/2024 09:35:13) : _projectFile == null for currentProject with name: D:\[REDACTED].cs
Log Message (15/08/2024 09:35:13) : _projectFile == null for currentProject with name: D:\[REDACTED].cs
Log Message (15/08/2024 09:35:13) : DocumentThisCommandImplementation->DocumentMembers...
Log Message (15/08/2024 09:35:13) : DocumentThisCommandImplementation->Run finished.
Log Message (15/08/2024 09:35:28) : Information: Registration code...
Log Message (15/08/2024 09:35:28) : Information: mk: [REDACTED];True
Log Message (15/08/2024 09:36:30) : Created DpiAwareness scope: True
Log Message (15/08/2024 09:36:31) : Dictionary used: en_GB

1 Reply

Reply to Thread
0
Misha Zhutov Replied
Employee Post
Hi Neil, 

I think it was a glitch on OpenAI side (it happens sometimes). I tried to reproduce the issue, I declared a class and documented it using Document This w/ OpenAI (attached screenshot)

Reply to Thread