Code icon

The App is Under a Quick Maintenance

We apologize for the inconvenience. Please come back later

Menu iconMenu iconOpenAI API Bible – Volume 1
OpenAI API Bible – Volume 1

ES Quiz Part II

Answers

1. C — System, User, Assistant

2. C — temperature

3. C — Streams responses in real time

4. B — Define assistant behavior

5. B — Vague instructions are discouraged

6. C — Requires name, description, and parameter schema

7. C — Lets the model decide when to call a function

8. B — Retrieval with generation to enhance responses

9. B — Short-term is session-bound, long-term must be built

10. C — Summarization preserves meaning while reducing tokens

11. (Example):

The Assistants API is ideal for a customer support bot that needs to manage user threads, upload documents, and provide persistent memory over time.

12. (Example):

{
  "name": "get_stock_price",
  "description": "Returns the current stock price for a given company symbol.",
  "parameters": {
    "type": "object",
    "properties": {
      "symbol": {
        "type": "string",
        "description": "The stock ticker symbol, e.g., 'AAPL' for Apple Inc."
      }
    },
    "required": ["symbol"]
  }
}

Answers

1. C — System, User, Assistant

2. C — temperature

3. C — Streams responses in real time

4. B — Define assistant behavior

5. B — Vague instructions are discouraged

6. C — Requires name, description, and parameter schema

7. C — Lets the model decide when to call a function

8. B — Retrieval with generation to enhance responses

9. B — Short-term is session-bound, long-term must be built

10. C — Summarization preserves meaning while reducing tokens

11. (Example):

The Assistants API is ideal for a customer support bot that needs to manage user threads, upload documents, and provide persistent memory over time.

12. (Example):

{
  "name": "get_stock_price",
  "description": "Returns the current stock price for a given company symbol.",
  "parameters": {
    "type": "object",
    "properties": {
      "symbol": {
        "type": "string",
        "description": "The stock ticker symbol, e.g., 'AAPL' for Apple Inc."
      }
    },
    "required": ["symbol"]
  }
}

Answers

1. C — System, User, Assistant

2. C — temperature

3. C — Streams responses in real time

4. B — Define assistant behavior

5. B — Vague instructions are discouraged

6. C — Requires name, description, and parameter schema

7. C — Lets the model decide when to call a function

8. B — Retrieval with generation to enhance responses

9. B — Short-term is session-bound, long-term must be built

10. C — Summarization preserves meaning while reducing tokens

11. (Example):

The Assistants API is ideal for a customer support bot that needs to manage user threads, upload documents, and provide persistent memory over time.

12. (Example):

{
  "name": "get_stock_price",
  "description": "Returns the current stock price for a given company symbol.",
  "parameters": {
    "type": "object",
    "properties": {
      "symbol": {
        "type": "string",
        "description": "The stock ticker symbol, e.g., 'AAPL' for Apple Inc."
      }
    },
    "required": ["symbol"]
  }
}

Answers

1. C — System, User, Assistant

2. C — temperature

3. C — Streams responses in real time

4. B — Define assistant behavior

5. B — Vague instructions are discouraged

6. C — Requires name, description, and parameter schema

7. C — Lets the model decide when to call a function

8. B — Retrieval with generation to enhance responses

9. B — Short-term is session-bound, long-term must be built

10. C — Summarization preserves meaning while reducing tokens

11. (Example):

The Assistants API is ideal for a customer support bot that needs to manage user threads, upload documents, and provide persistent memory over time.

12. (Example):

{
  "name": "get_stock_price",
  "description": "Returns the current stock price for a given company symbol.",
  "parameters": {
    "type": "object",
    "properties": {
      "symbol": {
        "type": "string",
        "description": "The stock ticker symbol, e.g., 'AAPL' for Apple Inc."
      }
    },
    "required": ["symbol"]
  }
}