You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a client application that calls through CodeGate and out to OpenAI. If I send a prompt through my client app with the text "Codegate version" a null is retuned. If send a prompt that isn't related to CodeGate (e.g. what is my name) i get a the following response.
On the failed (null) response i see the following json:
It looks like the "text": "CodeGate version: v0.1.14", is returning the codegate version number but I'm wondering if it should be in the content field which is currently -> "content": null. It's possible that I need to handle this situation on the client and that this is by design.
Here is a successful response to compare against:
{
"id": "chatcmpl-Aup48XBfAM4msvRZAI4lwDBPpZOxj",
"object": "chat.completion",
"created": 1738106028,
"model": "gpt-4o-mini-2024-07-18",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
**"content": "It seems like you're testing the functionality. How can I assist you today? If you have any questions or need help with something specific, feel free to ask!",**
"refusal": null
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 74,
"completion_tokens": 33,
"total_tokens": 107,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"service_tier": "default",
"system_fingerprint": "fp_72ed7ab54c"
}
Describe the issue
I'm building a client application that calls through CodeGate and out to OpenAI. If I send a prompt through my client app with the text "Codegate version" a null is retuned. If send a prompt that isn't related to CodeGate (e.g. what is my name) i get a the following response.
On the failed (null) response i see the following json:
It looks like the "text": "CodeGate version: v0.1.14", is returning the codegate version number but I'm wondering if it should be in the content field which is currently -> "content": null. It's possible that I need to handle this situation on the client and that this is by design.
Here is a successful response to compare against:
Steps to Reproduce
Run sample project https://github.com/StacklokLabs/spring-ai-codegate-sample/tree/main/sample
Operating System
MacOS (Arm)
IDE and Version
Vscode
Extension and Version
NA
Provider
OpenAI
Model
gpt-4o-mini
Codegate version
v0.1.14
Logs
Here are the CodeGate logs from the response returning null:
Additional Context
No response
The text was updated successfully, but these errors were encountered: