Find answers from the community

Home
Members
navya9668
n
navya9668
Offline, last seen 3 months ago
Joined September 25, 2024
@kapa.ai how to get a structured pydantic output here?
response = client.chat.completions.create(
model=deployment_engine,
messages=[
{"role": "system", "content": system_message},
{"role": "user", "content": prompt},
],
temperature=model_temperature,
top_p=model_top_p,
frequency_penalty=model_frequency_penalty,
presence_penalty=model_presence_penalty
)
3 comments
k
L
@kapa.ai how to write a query pipeline to get formatted output with OpenAI llm
3 comments
k
@kapa.ai how to get output in this format using pydantic ?
diameter name
required: y/n
type: request/answer…
description:

prompt - Generate Diameter message flow for test case
13 comments
k
n
@kapa.ai how to get response in this format using pydantic output parser?
diameter call step
required: y/n
type: request/answer…
description:
2 comments
k
@kapa.ai how to get response in this format ?
diameter call step
required: y/n
type: request/answer…
description:
2 comments
k
@kapa.ai
this is my actual output = CCR-I (Credit-Control-Request-Initial):
  • From: P-GW to OCS
  • Purpose: Initiates a new charging session. This message includes the subscriber's identity, requested service information, and the amount of quota (data volume) requested for the session.
  • Expected Result: Triggers the OCS to check the subscriber's account balance.
  1. CCA-I (Credit-Control-Answer-Initial):
    • From: OCS to P-GW
    • Purpose: Responds to the CCR-I. This message includes the result of the balance check.
    • Expected Result: If the subscriber's balance is below the required threshold, the OCS denies the quota
by setting the Granted-Service-Unit to zero and includes a final unit indication (e.g., TERMINATE or REDIRECT) to indicate that the session cannot be initiated.
how to get response in this format ?
diameter call step
required: y/n
type: request/answer…
description:
2 comments
k