> ## Documentation Index
> Fetch the complete documentation index at: https://docs.okchat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat

> Chat



## OpenAPI

````yaml api-reference/openapi-spec.json post /api/external/chatbot/{chatbotId}/chat
openapi: 3.0.3
info:
  title: OKCHAT2.0
  version: 1.0.0
  contact: {}
servers:
  - url: https://v2.okchat.ai
  - url: http://localhost
security: []
tags: []
paths:
  /api/external/chatbot/{chatbotId}/chat:
    parameters:
      - name: chatbotId
        in: path
        required: true
        schema:
          type: string
          example: c631086b-0147-4749-9034-940647620f0c
    post:
      summary: Chat
      description: Chat
      operationId: chat
      parameters:
        - name: stream
          in: query
          schema:
            type: string
            example: 'false'
        - name: x-api-key
          in: header
          schema:
            type: string
            example: 15a23c21867f4f38b0b46f5e4adb1caf87a040b34eb58f68
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      content:
                        type: string
                        example: Tell me about the history of the internet.
                      role:
                        type: string
                        example: user
                  example:
                    - content: Tell me about the history of the internet.
                      role: user
                platform:
                  type: string
                  example: web
                sessionToken:
                  type: string
                  example: sessionToken789
            examples:
              Chat:
                value:
                  messages:
                    - content: Tell me about the history of the internet.
                      role: user
                  platform: web
                  sessionToken: sessionToken789
              Chat Copy:
                value:
                  messages:
                    - content: Tell me about the history of the internet.
                      role: user
                  platform: web
                  sessionToken: sessionToken789
      responses:
        '200':
          description: >-
            Non stream response / Stream Response / Non stream response / Stream
            Response
          headers:
            Access-Control-Allow-Credentials:
              schema:
                type: string
                example: 'true'
            Access-Control-Allow-Headers:
              schema:
                type: string
                example: >-
                  X-CSRF-Token, X-Requested-With, Accept, Accept-Version,
                  Content-Length, Content-MD5, Content-Type, Date, X-Api-Version
            Access-Control-Allow-Methods:
              schema:
                type: string
                example: GET,OPTIONS,PATCH,DELETE,POST,PUT
            Access-Control-Allow-Origin:
              schema:
                type: string
                example: '*'
            Connection:
              schema:
                type: string
                example: keep-alive
            Date:
              schema:
                type: string
                example: Wed, 22 Jan 2025 10:24:56 GMT
            Keep-Alive:
              schema:
                type: string
                example: timeout=5
            Transfer-Encoding:
              schema:
                type: string
                example: chunked
            vary:
              schema:
                type: string
                example: >-
                  RSC, Next-Router-State-Tree, Next-Router-Prefetch,
                  Next-Router-Segment-Prefetch
            x-vercel-ai-data-stream:
              schema:
                type: string
                example: v1
          content:
            application/json:
              schema:
                type: object
                properties:
                  finish_reason:
                    type: string
                    example: stop
                  output:
                    type: string
                    example: >-
                      The history of the internet is a fascinating journey that
                      spans several decades, marked by significant technological
                      advancements and the collaboration of various individuals
                      and organizations. Here’s a brief overview:


                      1. **1960s - The Conceptual Foundation**: The idea of a
                      network of computers began in the 1960s. The U.S.
                      Department of Defense funded research into packet
                      switching, a method of data transmission that breaks data
                      into packets for more efficient routing. This led to the
                      development of ARPANET (Advanced Research Projects Agency
                      Network) in 1969, which is considered the first
                      operational packet-switching network.


                      2. **1970s - Protocol Development**: In the early 1970s,
                      Vint Cerf and Bob Kahn developed the Transmission Control
                      Protocol (TCP) and Internet Protocol (IP), which became
                      the fundamental communication protocols for the internet.
                      This allowed different networks to interconnect, forming
                      the basis for the modern internet.


                      3. **1980s - Expansion and Standardization**: The 1980s
                      saw the introduction of the Domain Name System (DNS) in
                      1983, which made it easier to navigate the internet by
                      using human-readable addresses instead of numerical IP
                      addresses. The National Science Foundation (NSF) created
                      NSFNET, which connected various regional networks and
                      expanded access to academic and research institutions.


                      4. **1990s - The World Wide Web**: The invention of the
                      World Wide Web by Tim Berners-Lee in 1989 and its
                      subsequent public release in 1991 revolutionized the
                      internet. The introduction of web browsers, such as Mosaic
                      in 1993, made the web accessible to the general public.
                      This decade also saw the commercialization of the
                      internet, leading to the dot-com boom.


                      5. **2000s - Broadband and Social Media**: The early 2000s
                      marked the transition from dial-up to broadband internet,
                      significantly increasing connection speeds. Social media
                      platforms like Facebook (2004) and Twitter (2006) emerged,
                      changing how people interacted online.


                      6. **2010s - Mobile Internet and Cloud Computing**: The
                      proliferation of smartphones and mobile internet access
                      transformed how users engage with the web. Cloud computing
                      services became popular, allowing users to store and
                      access data online.


                      7. **2020s - The Internet of Things (IoT) and Beyond**:
                      The current decade is characterized by the growth of IoT,
                      where everyday devices are connected to the internet, and
                      advancements in artificial intelligence, 5G technology,
                      and cybersecurity.


                      The internet continues to evolve, impacting nearly every
                      aspect of modern life, from communication and commerce to
                      education and entertainment.
                  steps:
                    type: array
                    items:
                      type: object
                      properties:
                        experimental_providerMetadata:
                          type: object
                          properties:
                            openai:
                              type: object
                              properties:
                                cachedPromptTokens:
                                  type: number
                                  example: 0
                                reasoningTokens:
                                  type: number
                                  example: 0
                        finishReason:
                          type: string
                          example: stop
                        isContinued:
                          type: boolean
                          example: false
                        request:
                          type: object
                          properties:
                            body:
                              type: string
                              example: >-
                                {"model":"gpt-4o-mini","temperature":0,"messages":[{"role":"system","content":"You
                                are an AI assistant that helps users with their
                                questions by providing accurate and concise
                                information. You have access to a knowledge base
                                through the searchKnowledgeBase tool. Use this
                                tool to search for relevant information before
                                responding to user queries. When answering,
                                consider the context of the conversation and
                                provide helpful and informative
                                responses.\n\nYou are a technical support bot
                                for okchat.ai. Your responsibility is to
                                troubleshoot issues, provide step-by-step
                                guidance, and escalate complex problems by
                                suggesting users contact a support engineer.
                                Always ensure clarity and patience in your
                                responses.\n\n\n\nTime awareness:\nToday is
                                2025. 1. 22..\nAdapt to the user's
                                language"},{"role":"user","content":"Tell me
                                about the history of the
                                internet."}],"tools":[{"type":"function","function":{"name":"searchKnowledgeBase","description":"Search
                                the knowledge base for relevant documents based
                                on a
                                query","parameters":{"type":"object","properties":{"query":{"type":"string","description":"The
                                search query to find relevant
                                documents"}},"required":["query"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_all_pokemons","description":"Get
                                All
                                Pokemons","parameters":{"type":"object","properties":{"limit":{"type":"number","default":"10","description":"Limit
                                Number"}},"required":["limit"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_pokemon_details","description":"Get
                                Pokemon
                                Details","parameters":{"type":"object","properties":{"pokemon_name":{"type":"string","description":"name
                                of a
                                pokemon"}},"required":["pokemon_name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_weather_info","description":"Get
                                Weather
                                Info","parameters":{"type":"object","properties":{"q":{"type":"string","description":"City
                                Name"},"units":{"type":"string","description":"Unit"}},"required":["q","units"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_weather","description":"Get
                                the weather of a
                                city","parameters":{"type":"object","properties":{"location":{"type":"string","description":"a
                                city
                                name"}},"required":["location"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}}],"tool_choice":"auto"}
                        response:
                          type: object
                          properties:
                            headers:
                              type: object
                              properties:
                                access-control-expose-headers:
                                  type: string
                                  example: X-Request-ID
                                alt-svc:
                                  type: string
                                  example: h3=":443"; ma=86400
                                cf-cache-status:
                                  type: string
                                  example: DYNAMIC
                                cf-ray:
                                  type: string
                                  example: 905ed550c8b440cc-SIN
                                connection:
                                  type: string
                                  example: keep-alive
                                content-encoding:
                                  type: string
                                  example: br
                                content-type:
                                  type: string
                                  example: application/json
                                date:
                                  type: string
                                  example: Wed, 22 Jan 2025 10:24:23 GMT
                                openai-organization:
                                  type: string
                                  example: dasomx
                                openai-processing-ms:
                                  type: string
                                  example: '8111'
                                openai-version:
                                  type: string
                                  example: '2020-10-01'
                                server:
                                  type: string
                                  example: cloudflare
                                set-cookie:
                                  type: string
                                  example: >-
                                    _cfuvid=rlg6jS7Z8p0HC.bVCZiKiHCPyvx74NER.PmtZLrSKUg-1737541463850-0.0.1.1-604800000;
                                    path=/; domain=.api.openai.com; HttpOnly;
                                    Secure; SameSite=None
                                strict-transport-security:
                                  type: string
                                  example: max-age=31536000; includeSubDomains; preload
                                transfer-encoding:
                                  type: string
                                  example: chunked
                                x-content-type-options:
                                  type: string
                                  example: nosniff
                                x-ratelimit-limit-requests:
                                  type: string
                                  example: '10000'
                                x-ratelimit-limit-tokens:
                                  type: string
                                  example: '10000000'
                                x-ratelimit-remaining-requests:
                                  type: string
                                  example: '9999'
                                x-ratelimit-remaining-tokens:
                                  type: string
                                  example: '9999795'
                                x-ratelimit-reset-requests:
                                  type: string
                                  example: 6ms
                                x-ratelimit-reset-tokens:
                                  type: string
                                  example: 1ms
                                x-request-id:
                                  type: string
                                  example: req_0aeec88fc424f34dbda6e9ae6f02415e
                            id:
                              type: string
                              example: chatcmpl-AsSC7lGib6PMX1sue7zKstC6sl0g9
                            messages:
                              type: array
                              items:
                                type: object
                                properties:
                                  content:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        text:
                                          type: string
                                          example: >-
                                            The history of the internet is a
                                            fascinating journey that spans several
                                            decades, marked by significant
                                            technological advancements and the
                                            collaboration of various individuals and
                                            organizations. Here’s a brief overview:


                                            1. **1960s - The Conceptual
                                            Foundation**: The idea of a network of
                                            computers began in the 1960s. The U.S.
                                            Department of Defense funded research
                                            into packet switching, a method of data
                                            transmission that breaks data into
                                            packets for more efficient routing. This
                                            led to the development of ARPANET
                                            (Advanced Research Projects Agency
                                            Network) in 1969, which is considered
                                            the first operational packet-switching
                                            network.


                                            2. **1970s - Protocol Development**: In
                                            the early 1970s, Vint Cerf and Bob Kahn
                                            developed the Transmission Control
                                            Protocol (TCP) and Internet Protocol
                                            (IP), which became the fundamental
                                            communication protocols for the
                                            internet. This allowed different
                                            networks to interconnect, forming the
                                            basis for the modern internet.


                                            3. **1980s - Expansion and
                                            Standardization**: The 1980s saw the
                                            introduction of the Domain Name System
                                            (DNS) in 1983, which made it easier to
                                            navigate the internet by using
                                            human-readable addresses instead of
                                            numerical IP addresses. The National
                                            Science Foundation (NSF) created NSFNET,
                                            which connected various regional
                                            networks and expanded access to academic
                                            and research institutions.


                                            4. **1990s - The World Wide Web**: The
                                            invention of the World Wide Web by Tim
                                            Berners-Lee in 1989 and its subsequent
                                            public release in 1991 revolutionized
                                            the internet. The introduction of web
                                            browsers, such as Mosaic in 1993, made
                                            the web accessible to the general
                                            public. This decade also saw the
                                            commercialization of the internet,
                                            leading to the dot-com boom.


                                            5. **2000s - Broadband and Social
                                            Media**: The early 2000s marked the
                                            transition from dial-up to broadband
                                            internet, significantly increasing
                                            connection speeds. Social media
                                            platforms like Facebook (2004) and
                                            Twitter (2006) emerged, changing how
                                            people interacted online.


                                            6. **2010s - Mobile Internet and Cloud
                                            Computing**: The proliferation of
                                            smartphones and mobile internet access
                                            transformed how users engage with the
                                            web. Cloud computing services became
                                            popular, allowing users to store and
                                            access data online.


                                            7. **2020s - The Internet of Things
                                            (IoT) and Beyond**: The current decade
                                            is characterized by the growth of IoT,
                                            where everyday devices are connected to
                                            the internet, and advancements in
                                            artificial intelligence, 5G technology,
                                            and cybersecurity.


                                            The internet continues to evolve,
                                            impacting nearly every aspect of modern
                                            life, from communication and commerce to
                                            education and entertainment.
                                        type:
                                          type: string
                                          example: text
                                    example:
                                      - text: >-
                                          The history of the internet is a
                                          fascinating journey that spans several
                                          decades, marked by significant
                                          technological advancements and the
                                          collaboration of various individuals and
                                          organizations. Here’s a brief overview:


                                          1. **1960s - The Conceptual
                                          Foundation**: The idea of a network of
                                          computers began in the 1960s. The U.S.
                                          Department of Defense funded research
                                          into packet switching, a method of data
                                          transmission that breaks data into
                                          packets for more efficient routing. This
                                          led to the development of ARPANET
                                          (Advanced Research Projects Agency
                                          Network) in 1969, which is considered
                                          the first operational packet-switching
                                          network.


                                          2. **1970s - Protocol Development**: In
                                          the early 1970s, Vint Cerf and Bob Kahn
                                          developed the Transmission Control
                                          Protocol (TCP) and Internet Protocol
                                          (IP), which became the fundamental
                                          communication protocols for the
                                          internet. This allowed different
                                          networks to interconnect, forming the
                                          basis for the modern internet.


                                          3. **1980s - Expansion and
                                          Standardization**: The 1980s saw the
                                          introduction of the Domain Name System
                                          (DNS) in 1983, which made it easier to
                                          navigate the internet by using
                                          human-readable addresses instead of
                                          numerical IP addresses. The National
                                          Science Foundation (NSF) created NSFNET,
                                          which connected various regional
                                          networks and expanded access to academic
                                          and research institutions.


                                          4. **1990s - The World Wide Web**: The
                                          invention of the World Wide Web by Tim
                                          Berners-Lee in 1989 and its subsequent
                                          public release in 1991 revolutionized
                                          the internet. The introduction of web
                                          browsers, such as Mosaic in 1993, made
                                          the web accessible to the general
                                          public. This decade also saw the
                                          commercialization of the internet,
                                          leading to the dot-com boom.


                                          5. **2000s - Broadband and Social
                                          Media**: The early 2000s marked the
                                          transition from dial-up to broadband
                                          internet, significantly increasing
                                          connection speeds. Social media
                                          platforms like Facebook (2004) and
                                          Twitter (2006) emerged, changing how
                                          people interacted online.


                                          6. **2010s - Mobile Internet and Cloud
                                          Computing**: The proliferation of
                                          smartphones and mobile internet access
                                          transformed how users engage with the
                                          web. Cloud computing services became
                                          popular, allowing users to store and
                                          access data online.


                                          7. **2020s - The Internet of Things
                                          (IoT) and Beyond**: The current decade
                                          is characterized by the growth of IoT,
                                          where everyday devices are connected to
                                          the internet, and advancements in
                                          artificial intelligence, 5G technology,
                                          and cybersecurity.


                                          The internet continues to evolve,
                                          impacting nearly every aspect of modern
                                          life, from communication and commerce to
                                          education and entertainment.
                                        type: text
                                  role:
                                    type: string
                                    example: assistant
                              example:
                                - content:
                                    - text: >-
                                        The history of the internet is a
                                        fascinating journey that spans several
                                        decades, marked by significant
                                        technological advancements and the
                                        collaboration of various individuals and
                                        organizations. Here’s a brief overview:


                                        1. **1960s - The Conceptual
                                        Foundation**: The idea of a network of
                                        computers began in the 1960s. The U.S.
                                        Department of Defense funded research
                                        into packet switching, a method of data
                                        transmission that breaks data into
                                        packets for more efficient routing. This
                                        led to the development of ARPANET
                                        (Advanced Research Projects Agency
                                        Network) in 1969, which is considered
                                        the first operational packet-switching
                                        network.


                                        2. **1970s - Protocol Development**: In
                                        the early 1970s, Vint Cerf and Bob Kahn
                                        developed the Transmission Control
                                        Protocol (TCP) and Internet Protocol
                                        (IP), which became the fundamental
                                        communication protocols for the
                                        internet. This allowed different
                                        networks to interconnect, forming the
                                        basis for the modern internet.


                                        3. **1980s - Expansion and
                                        Standardization**: The 1980s saw the
                                        introduction of the Domain Name System
                                        (DNS) in 1983, which made it easier to
                                        navigate the internet by using
                                        human-readable addresses instead of
                                        numerical IP addresses. The National
                                        Science Foundation (NSF) created NSFNET,
                                        which connected various regional
                                        networks and expanded access to academic
                                        and research institutions.


                                        4. **1990s - The World Wide Web**: The
                                        invention of the World Wide Web by Tim
                                        Berners-Lee in 1989 and its subsequent
                                        public release in 1991 revolutionized
                                        the internet. The introduction of web
                                        browsers, such as Mosaic in 1993, made
                                        the web accessible to the general
                                        public. This decade also saw the
                                        commercialization of the internet,
                                        leading to the dot-com boom.


                                        5. **2000s - Broadband and Social
                                        Media**: The early 2000s marked the
                                        transition from dial-up to broadband
                                        internet, significantly increasing
                                        connection speeds. Social media
                                        platforms like Facebook (2004) and
                                        Twitter (2006) emerged, changing how
                                        people interacted online.


                                        6. **2010s - Mobile Internet and Cloud
                                        Computing**: The proliferation of
                                        smartphones and mobile internet access
                                        transformed how users engage with the
                                        web. Cloud computing services became
                                        popular, allowing users to store and
                                        access data online.


                                        7. **2020s - The Internet of Things
                                        (IoT) and Beyond**: The current decade
                                        is characterized by the growth of IoT,
                                        where everyday devices are connected to
                                        the internet, and advancements in
                                        artificial intelligence, 5G technology,
                                        and cybersecurity.


                                        The internet continues to evolve,
                                        impacting nearly every aspect of modern
                                        life, from communication and commerce to
                                        education and entertainment.
                                      type: text
                                  role: assistant
                            modelId:
                              type: string
                              example: gpt-4o-mini-2024-07-18
                            timestamp:
                              type: string
                              example: '2025-01-22T10:24:15.000Z'
                        stepType:
                          type: string
                          example: initial
                        text:
                          type: string
                          example: >-
                            The history of the internet is a fascinating journey
                            that spans several decades, marked by significant
                            technological advancements and the collaboration of
                            various individuals and organizations. Here’s a
                            brief overview:


                            1. **1960s - The Conceptual Foundation**: The idea
                            of a network of computers began in the 1960s. The
                            U.S. Department of Defense funded research into
                            packet switching, a method of data transmission that
                            breaks data into packets for more efficient routing.
                            This led to the development of ARPANET (Advanced
                            Research Projects Agency Network) in 1969, which is
                            considered the first operational packet-switching
                            network.


                            2. **1970s - Protocol Development**: In the early
                            1970s, Vint Cerf and Bob Kahn developed the
                            Transmission Control Protocol (TCP) and Internet
                            Protocol (IP), which became the fundamental
                            communication protocols for the internet. This
                            allowed different networks to interconnect, forming
                            the basis for the modern internet.


                            3. **1980s - Expansion and Standardization**: The
                            1980s saw the introduction of the Domain Name System
                            (DNS) in 1983, which made it easier to navigate the
                            internet by using human-readable addresses instead
                            of numerical IP addresses. The National Science
                            Foundation (NSF) created NSFNET, which connected
                            various regional networks and expanded access to
                            academic and research institutions.


                            4. **1990s - The World Wide Web**: The invention of
                            the World Wide Web by Tim Berners-Lee in 1989 and
                            its subsequent public release in 1991 revolutionized
                            the internet. The introduction of web browsers, such
                            as Mosaic in 1993, made the web accessible to the
                            general public. This decade also saw the
                            commercialization of the internet, leading to the
                            dot-com boom.


                            5. **2000s - Broadband and Social Media**: The early
                            2000s marked the transition from dial-up to
                            broadband internet, significantly increasing
                            connection speeds. Social media platforms like
                            Facebook (2004) and Twitter (2006) emerged, changing
                            how people interacted online.


                            6. **2010s - Mobile Internet and Cloud Computing**:
                            The proliferation of smartphones and mobile internet
                            access transformed how users engage with the web.
                            Cloud computing services became popular, allowing
                            users to store and access data online.


                            7. **2020s - The Internet of Things (IoT) and
                            Beyond**: The current decade is characterized by the
                            growth of IoT, where everyday devices are connected
                            to the internet, and advancements in artificial
                            intelligence, 5G technology, and cybersecurity.


                            The internet continues to evolve, impacting nearly
                            every aspect of modern life, from communication and
                            commerce to education and entertainment.
                        toolCalls:
                          type: array
                          items: {}
                          example: []
                        toolResults:
                          type: array
                          items: {}
                          example: []
                        usage:
                          type: object
                          properties:
                            completionTokens:
                              type: number
                              example: 533
                            promptTokens:
                              type: number
                              example: 310
                            totalTokens:
                              type: number
                              example: 843
                        warnings:
                          type: array
                          items: {}
                          example: []
                    example:
                      - experimental_providerMetadata:
                          openai:
                            cachedPromptTokens: 0
                            reasoningTokens: 0
                        finishReason: stop
                        isContinued: false
                        request:
                          body: >-
                            {"model":"gpt-4o-mini","temperature":0,"messages":[{"role":"system","content":"You
                            are an AI assistant that helps users with their
                            questions by providing accurate and concise
                            information. You have access to a knowledge base
                            through the searchKnowledgeBase tool. Use this tool
                            to search for relevant information before responding
                            to user queries. When answering, consider the
                            context of the conversation and provide helpful and
                            informative responses.\n\nYou are a technical
                            support bot for okchat.ai. Your responsibility is to
                            troubleshoot issues, provide step-by-step guidance,
                            and escalate complex problems by suggesting users
                            contact a support engineer. Always ensure clarity
                            and patience in your responses.\n\n\n\nTime
                            awareness:\nToday is 2025. 1. 22..\nAdapt to the
                            user's language"},{"role":"user","content":"Tell me
                            about the history of the
                            internet."}],"tools":[{"type":"function","function":{"name":"searchKnowledgeBase","description":"Search
                            the knowledge base for relevant documents based on a
                            query","parameters":{"type":"object","properties":{"query":{"type":"string","description":"The
                            search query to find relevant
                            documents"}},"required":["query"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_all_pokemons","description":"Get
                            All
                            Pokemons","parameters":{"type":"object","properties":{"limit":{"type":"number","default":"10","description":"Limit
                            Number"}},"required":["limit"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_pokemon_details","description":"Get
                            Pokemon
                            Details","parameters":{"type":"object","properties":{"pokemon_name":{"type":"string","description":"name
                            of a
                            pokemon"}},"required":["pokemon_name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_weather_info","description":"Get
                            Weather
                            Info","parameters":{"type":"object","properties":{"q":{"type":"string","description":"City
                            Name"},"units":{"type":"string","description":"Unit"}},"required":["q","units"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_weather","description":"Get
                            the weather of a
                            city","parameters":{"type":"object","properties":{"location":{"type":"string","description":"a
                            city
                            name"}},"required":["location"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}}],"tool_choice":"auto"}
                        response:
                          headers:
                            access-control-expose-headers: X-Request-ID
                            alt-svc: h3=":443"; ma=86400
                            cf-cache-status: DYNAMIC
                            cf-ray: 905ed550c8b440cc-SIN
                            connection: keep-alive
                            content-encoding: br
                            content-type: application/json
                            date: Wed, 22 Jan 2025 10:24:23 GMT
                            openai-organization: dasomx
                            openai-processing-ms: '8111'
                            openai-version: '2020-10-01'
                            server: cloudflare
                            set-cookie: >-
                              _cfuvid=rlg6jS7Z8p0HC.bVCZiKiHCPyvx74NER.PmtZLrSKUg-1737541463850-0.0.1.1-604800000;
                              path=/; domain=.api.openai.com; HttpOnly; Secure;
                              SameSite=None
                            strict-transport-security: max-age=31536000; includeSubDomains; preload
                            transfer-encoding: chunked
                            x-content-type-options: nosniff
                            x-ratelimit-limit-requests: '10000'
                            x-ratelimit-limit-tokens: '10000000'
                            x-ratelimit-remaining-requests: '9999'
                            x-ratelimit-remaining-tokens: '9999795'
                            x-ratelimit-reset-requests: 6ms
                            x-ratelimit-reset-tokens: 1ms
                            x-request-id: req_0aeec88fc424f34dbda6e9ae6f02415e
                          id: chatcmpl-AsSC7lGib6PMX1sue7zKstC6sl0g9
                          messages:
                            - content:
                                - text: >-
                                    The history of the internet is a fascinating
                                    journey that spans several decades, marked
                                    by significant technological advancements
                                    and the collaboration of various individuals
                                    and organizations. Here’s a brief overview:


                                    1. **1960s - The Conceptual Foundation**:
                                    The idea of a network of computers began in
                                    the 1960s. The U.S. Department of Defense
                                    funded research into packet switching, a
                                    method of data transmission that breaks data
                                    into packets for more efficient routing.
                                    This led to the development of ARPANET
                                    (Advanced Research Projects Agency Network)
                                    in 1969, which is considered the first
                                    operational packet-switching network.


                                    2. **1970s - Protocol Development**: In the
                                    early 1970s, Vint Cerf and Bob Kahn
                                    developed the Transmission Control Protocol
                                    (TCP) and Internet Protocol (IP), which
                                    became the fundamental communication
                                    protocols for the internet. This allowed
                                    different networks to interconnect, forming
                                    the basis for the modern internet.


                                    3. **1980s - Expansion and
                                    Standardization**: The 1980s saw the
                                    introduction of the Domain Name System (DNS)
                                    in 1983, which made it easier to navigate
                                    the internet by using human-readable
                                    addresses instead of numerical IP addresses.
                                    The National Science Foundation (NSF)
                                    created NSFNET, which connected various
                                    regional networks and expanded access to
                                    academic and research institutions.


                                    4. **1990s - The World Wide Web**: The
                                    invention of the World Wide Web by Tim
                                    Berners-Lee in 1989 and its subsequent
                                    public release in 1991 revolutionized the
                                    internet. The introduction of web browsers,
                                    such as Mosaic in 1993, made the web
                                    accessible to the general public. This
                                    decade also saw the commercialization of the
                                    internet, leading to the dot-com boom.


                                    5. **2000s - Broadband and Social Media**:
                                    The early 2000s marked the transition from
                                    dial-up to broadband internet, significantly
                                    increasing connection speeds. Social media
                                    platforms like Facebook (2004) and Twitter
                                    (2006) emerged, changing how people
                                    interacted online.


                                    6. **2010s - Mobile Internet and Cloud
                                    Computing**: The proliferation of
                                    smartphones and mobile internet access
                                    transformed how users engage with the web.
                                    Cloud computing services became popular,
                                    allowing users to store and access data
                                    online.


                                    7. **2020s - The Internet of Things (IoT)
                                    and Beyond**: The current decade is
                                    characterized by the growth of IoT, where
                                    everyday devices are connected to the
                                    internet, and advancements in artificial
                                    intelligence, 5G technology, and
                                    cybersecurity.


                                    The internet continues to evolve, impacting
                                    nearly every aspect of modern life, from
                                    communication and commerce to education and
                                    entertainment.
                                  type: text
                              role: assistant
                          modelId: gpt-4o-mini-2024-07-18
                          timestamp: '2025-01-22T10:24:15.000Z'
                        stepType: initial
                        text: >-
                          The history of the internet is a fascinating journey
                          that spans several decades, marked by significant
                          technological advancements and the collaboration of
                          various individuals and organizations. Here’s a brief
                          overview:


                          1. **1960s - The Conceptual Foundation**: The idea of
                          a network of computers began in the 1960s. The U.S.
                          Department of Defense funded research into packet
                          switching, a method of data transmission that breaks
                          data into packets for more efficient routing. This led
                          to the development of ARPANET (Advanced Research
                          Projects Agency Network) in 1969, which is considered
                          the first operational packet-switching network.


                          2. **1970s - Protocol Development**: In the early
                          1970s, Vint Cerf and Bob Kahn developed the
                          Transmission Control Protocol (TCP) and Internet
                          Protocol (IP), which became the fundamental
                          communication protocols for the internet. This allowed
                          different networks to interconnect, forming the basis
                          for the modern internet.


                          3. **1980s - Expansion and Standardization**: The
                          1980s saw the introduction of the Domain Name System
                          (DNS) in 1983, which made it easier to navigate the
                          internet by using human-readable addresses instead of
                          numerical IP addresses. The National Science
                          Foundation (NSF) created NSFNET, which connected
                          various regional networks and expanded access to
                          academic and research institutions.


                          4. **1990s - The World Wide Web**: The invention of
                          the World Wide Web by Tim Berners-Lee in 1989 and its
                          subsequent public release in 1991 revolutionized the
                          internet. The introduction of web browsers, such as
                          Mosaic in 1993, made the web accessible to the general
                          public. This decade also saw the commercialization of
                          the internet, leading to the dot-com boom.


                          5. **2000s - Broadband and Social Media**: The early
                          2000s marked the transition from dial-up to broadband
                          internet, significantly increasing connection speeds.
                          Social media platforms like Facebook (2004) and
                          Twitter (2006) emerged, changing how people interacted
                          online.


                          6. **2010s - Mobile Internet and Cloud Computing**:
                          The proliferation of smartphones and mobile internet
                          access transformed how users engage with the web.
                          Cloud computing services became popular, allowing
                          users to store and access data online.


                          7. **2020s - The Internet of Things (IoT) and
                          Beyond**: The current decade is characterized by the
                          growth of IoT, where everyday devices are connected to
                          the internet, and advancements in artificial
                          intelligence, 5G technology, and cybersecurity.


                          The internet continues to evolve, impacting nearly
                          every aspect of modern life, from communication and
                          commerce to education and entertainment.
                        toolCalls: []
                        toolResults: []
                        usage:
                          completionTokens: 533
                          promptTokens: 310
                          totalTokens: 843
                        warnings: []
                  tool_calls:
                    type: array
                    items: {}
                    example: []
                  tool_results:
                    type: array
                    items: {}
                    example: []
              examples:
                Non stream response:
                  value:
                    finish_reason: stop
                    output: >-
                      The history of the internet is a fascinating journey that
                      spans several decades, marked by significant technological
                      advancements and the collaboration of various individuals
                      and organizations. Here’s a brief overview:


                      1. **1960s - The Conceptual Foundation**: The idea of a
                      network of computers began in the 1960s. The U.S.
                      Department of Defense funded research into packet
                      switching, a method of data transmission that breaks data
                      into packets for more efficient routing. This led to the
                      development of ARPANET (Advanced Research Projects Agency
                      Network) in 1969, which is considered the first
                      operational packet-switching network.


                      2. **1970s - Protocol Development**: In the early 1970s,
                      Vint Cerf and Bob Kahn developed the Transmission Control
                      Protocol (TCP) and Internet Protocol (IP), which became
                      the fundamental communication protocols for the internet.
                      This allowed different networks to interconnect, forming
                      the basis for the modern internet.


                      3. **1980s - Expansion and Standardization**: The 1980s
                      saw the introduction of the Domain Name System (DNS) in
                      1983, which made it easier to navigate the internet by
                      using human-readable addresses instead of numerical IP
                      addresses. The National Science Foundation (NSF) created
                      NSFNET, which connected various regional networks and
                      expanded access to academic and research institutions.


                      4. **1990s - The World Wide Web**: The invention of the
                      World Wide Web by Tim Berners-Lee in 1989 and its
                      subsequent public release in 1991 revolutionized the
                      internet. The introduction of web browsers, such as Mosaic
                      in 1993, made the web accessible to the general public.
                      This decade also saw the commercialization of the
                      internet, leading to the dot-com boom.


                      5. **2000s - Broadband and Social Media**: The early 2000s
                      marked the transition from dial-up to broadband internet,
                      significantly increasing connection speeds. Social media
                      platforms like Facebook (2004) and Twitter (2006) emerged,
                      changing how people interacted online.


                      6. **2010s - Mobile Internet and Cloud Computing**: The
                      proliferation of smartphones and mobile internet access
                      transformed how users engage with the web. Cloud computing
                      services became popular, allowing users to store and
                      access data online.


                      7. **2020s - The Internet of Things (IoT) and Beyond**:
                      The current decade is characterized by the growth of IoT,
                      where everyday devices are connected to the internet, and
                      advancements in artificial intelligence, 5G technology,
                      and cybersecurity.


                      The internet continues to evolve, impacting nearly every
                      aspect of modern life, from communication and commerce to
                      education and entertainment.
                    steps:
                      - experimental_providerMetadata:
                          openai:
                            cachedPromptTokens: 0
                            reasoningTokens: 0
                        finishReason: stop
                        isContinued: false
                        request:
                          body: >-
                            {"model":"gpt-4o-mini","temperature":0,"messages":[{"role":"system","content":"You
                            are an AI assistant that helps users with their
                            questions by providing accurate and concise
                            information. You have access to a knowledge base
                            through the searchKnowledgeBase tool. Use this tool
                            to search for relevant information before responding
                            to user queries. When answering, consider the
                            context of the conversation and provide helpful and
                            informative responses.\n\nYou are a technical
                            support bot for okchat.ai. Your responsibility is to
                            troubleshoot issues, provide step-by-step guidance,
                            and escalate complex problems by suggesting users
                            contact a support engineer. Always ensure clarity
                            and patience in your responses.\n\n\n\nTime
                            awareness:\nToday is 2025. 1. 22..\nAdapt to the
                            user's language"},{"role":"user","content":"Tell me
                            about the history of the
                            internet."}],"tools":[{"type":"function","function":{"name":"searchKnowledgeBase","description":"Search
                            the knowledge base for relevant documents based on a
                            query","parameters":{"type":"object","properties":{"query":{"type":"string","description":"The
                            search query to find relevant
                            documents"}},"required":["query"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_all_pokemons","description":"Get
                            All
                            Pokemons","parameters":{"type":"object","properties":{"limit":{"type":"number","default":"10","description":"Limit
                            Number"}},"required":["limit"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_pokemon_details","description":"Get
                            Pokemon
                            Details","parameters":{"type":"object","properties":{"pokemon_name":{"type":"string","description":"name
                            of a
                            pokemon"}},"required":["pokemon_name"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_weather_info","description":"Get
                            Weather
                            Info","parameters":{"type":"object","properties":{"q":{"type":"string","description":"City
                            Name"},"units":{"type":"string","description":"Unit"}},"required":["q","units"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}},{"type":"function","function":{"name":"get_weather","description":"Get
                            the weather of a
                            city","parameters":{"type":"object","properties":{"location":{"type":"string","description":"a
                            city
                            name"}},"required":["location"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}}],"tool_choice":"auto"}
                        response:
                          headers:
                            access-control-expose-headers: X-Request-ID
                            alt-svc: h3=":443"; ma=86400
                            cf-cache-status: DYNAMIC
                            cf-ray: 905ed550c8b440cc-SIN
                            connection: keep-alive
                            content-encoding: br
                            content-type: application/json
                            date: Wed, 22 Jan 2025 10:24:23 GMT
                            openai-organization: dasomx
                            openai-processing-ms: '8111'
                            openai-version: '2020-10-01'
                            server: cloudflare
                            set-cookie: >-
                              _cfuvid=rlg6jS7Z8p0HC.bVCZiKiHCPyvx74NER.PmtZLrSKUg-1737541463850-0.0.1.1-604800000;
                              path=/; domain=.api.openai.com; HttpOnly; Secure;
                              SameSite=None
                            strict-transport-security: max-age=31536000; includeSubDomains; preload
                            transfer-encoding: chunked
                            x-content-type-options: nosniff
                            x-ratelimit-limit-requests: '10000'
                            x-ratelimit-limit-tokens: '10000000'
                            x-ratelimit-remaining-requests: '9999'
                            x-ratelimit-remaining-tokens: '9999795'
                            x-ratelimit-reset-requests: 6ms
                            x-ratelimit-reset-tokens: 1ms
                            x-request-id: req_0aeec88fc424f34dbda6e9ae6f02415e
                          id: chatcmpl-AsSC7lGib6PMX1sue7zKstC6sl0g9
                          messages:
                            - content:
                                - text: >-
                                    The history of the internet is a fascinating
                                    journey that spans several decades, marked
                                    by significant technological advancements
                                    and the collaboration of various individuals
                                    and organizations. Here’s a brief overview:


                                    1. **1960s - The Conceptual Foundation**:
                                    The idea of a network of computers began in
                                    the 1960s. The U.S. Department of Defense
                                    funded research into packet switching, a
                                    method of data transmission that breaks data
                                    into packets for more efficient routing.
                                    This led to the development of ARPANET
                                    (Advanced Research Projects Agency Network)
                                    in 1969, which is considered the first
                                    operational packet-switching network.


                                    2. **1970s - Protocol Development**: In the
                                    early 1970s, Vint Cerf and Bob Kahn
                                    developed the Transmission Control Protocol
                                    (TCP) and Internet Protocol (IP), which
                                    became the fundamental communication
                                    protocols for the internet. This allowed
                                    different networks to interconnect, forming
                                    the basis for the modern internet.


                                    3. **1980s - Expansion and
                                    Standardization**: The 1980s saw the
                                    introduction of the Domain Name System (DNS)
                                    in 1983, which made it easier to navigate
                                    the internet by using human-readable
                                    addresses instead of numerical IP addresses.
                                    The National Science Foundation (NSF)
                                    created NSFNET, which connected various
                                    regional networks and expanded access to
                                    academic and research institutions.


                                    4. **1990s - The World Wide Web**: The
                                    invention of the World Wide Web by Tim
                                    Berners-Lee in 1989 and its subsequent
                                    public release in 1991 revolutionized the
                                    internet. The introduction of web browsers,
                                    such as Mosaic in 1993, made the web
                                    accessible to the general public. This
                                    decade also saw the commercialization of the
                                    internet, leading to the dot-com boom.


                                    5. **2000s - Broadband and Social Media**:
                                    The early 2000s marked the transition from
                                    dial-up to broadband internet, significantly
                                    increasing connection speeds. Social media
                                    platforms like Facebook (2004) and Twitter
                                    (2006) emerged, changing how people
                                    interacted online.


                                    6. **2010s - Mobile Internet and Cloud
                                    Computing**: The proliferation of
                                    smartphones and mobile internet access
                                    transformed how users engage with the web.
                                    Cloud computing services became popular,
                                    allowing users to store and access data
                                    online.


                                    7. **2020s - The Internet of Things (IoT)
                                    and Beyond**: The current decade is
                                    characterized by the growth of IoT, where
                                    everyday devices are connected to the
                                    internet, and advancements in artificial
                                    intelligence, 5G technology, and
                                    cybersecurity.


                                    The internet continues to evolve, impacting
                                    nearly every aspect of modern life, from
                                    communication and commerce to education and
                                    entertainment.
                                  type: text
                              role: assistant
                          modelId: gpt-4o-mini-2024-07-18
                          timestamp: '2025-01-22T10:24:15.000Z'
                        stepType: initial
                        text: >-
                          The history of the internet is a fascinating journey
                          that spans several decades, marked by significant
                          technological advancements and the collaboration of
                          various individuals and organizations. Here’s a brief
                          overview:


                          1. **1960s - The Conceptual Foundation**: The idea of
                          a network of computers began in the 1960s. The U.S.
                          Department of Defense funded research into packet
                          switching, a method of data transmission that breaks
                          data into packets for more efficient routing. This led
                          to the development of ARPANET (Advanced Research
                          Projects Agency Network) in 1969, which is considered
                          the first operational packet-switching network.


                          2. **1970s - Protocol Development**: In the early
                          1970s, Vint Cerf and Bob Kahn developed the
                          Transmission Control Protocol (TCP) and Internet
                          Protocol (IP), which became the fundamental
                          communication protocols for the internet. This allowed
                          different networks to interconnect, forming the basis
                          for the modern internet.


                          3. **1980s - Expansion and Standardization**: The
                          1980s saw the introduction of the Domain Name System
                          (DNS) in 1983, which made it easier to navigate the
                          internet by using human-readable addresses instead of
                          numerical IP addresses. The National Science
                          Foundation (NSF) created NSFNET, which connected
                          various regional networks and expanded access to
                          academic and research institutions.


                          4. **1990s - The World Wide Web**: The invention of
                          the World Wide Web by Tim Berners-Lee in 1989 and its
                          subsequent public release in 1991 revolutionized the
                          internet. The introduction of web browsers, such as
                          Mosaic in 1993, made the web accessible to the general
                          public. This decade also saw the commercialization of
                          the internet, leading to the dot-com boom.


                          5. **2000s - Broadband and Social Media**: The early
                          2000s marked the transition from dial-up to broadband
                          internet, significantly increasing connection speeds.
                          Social media platforms like Facebook (2004) and
                          Twitter (2006) emerged, changing how people interacted
                          online.


                          6. **2010s - Mobile Internet and Cloud Computing**:
                          The proliferation of smartphones and mobile internet
                          access transformed how users engage with the web.
                          Cloud computing services became popular, allowing
                          users to store and access data online.


                          7. **2020s - The Internet of Things (IoT) and
                          Beyond**: The current decade is characterized by the
                          growth of IoT, where everyday devices are connected to
                          the internet, and advancements in artificial
                          intelligence, 5G technology, and cybersecurity.


                          The internet continues to evolve, impacting nearly
                          every aspect of modern life, from communication and
                          commerce to education and entertainment.
                        toolCalls: []
                        toolResults: []
                        usage:
                          completionTokens: 533
                          promptTokens: 310
                          totalTokens: 843
                        warnings: []
                    tool_calls: []
                    tool_results: []

````